/* The home page (landing/index.html), in the DGMD product-website layout
   (dgmd-platform handbook/product-website.md). Taken from
   Erbengemeinschaft-Akte's site/style.css, the reference implementation,
   in Werkstaffel's green. System fonts only, nothing loaded from
   elsewhere, no script: every effect is CSS. Each motion sits inside
   prefers-reduced-motion:no-preference and an @supports for what it uses;
   without either the page is complete and still. */
:root{
  color-scheme:light dark;
  --bg:#FFFFFF; --surface:#EEF4F1; --ink:#1B2A24; --mute:#44544D; --rule:#CFDCD5;
  --accent:#1F5C4A; --wash:#D6E8DF; --on-wash:#0F3328;
  --g2:#2E8B6E; --g3:#B07A24;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0B1210; --surface:#15201C; --ink:#E8F0EC; --mute:#A3B5AD; --rule:#2A3832;
    --accent:#7CCBAA; --wash:#1D3A30; --on-wash:#D6E8DF; --g2:#4FB38F; --g3:#E0B060;
  }
}
:root[data-theme="dark"]{
  --bg:#0B1210; --surface:#15201C; --ink:#E8F0EC; --mute:#A3B5AD; --rule:#2A3832;
  --accent:#7CCBAA; --wash:#1D3A30; --on-wash:#D6E8DF; --g2:#4FB38F; --g3:#E0B060;
}
*{box-sizing:border-box}
html{overflow-x:clip}
body{margin:0;background:var(--bg);color:var(--ink);
     font:400 19px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--accent);text-underline-offset:2px}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:2px}
.skip{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus{width:auto;height:auto;clip-path:none;inset-inline-start:8px;top:8px;background:var(--surface);padding:10px 14px;border-radius:8px;z-index:9}
h1,h2,h3{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}

/* ---- The bar: sticky; its button to the app comes in on scroll ---- */
.bar{background:color-mix(in srgb,var(--surface) 88%,transparent);border-bottom:1px solid var(--rule);
     position:sticky;top:0;z-index:5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.bar-in{max-width:72rem;margin:0 auto;padding:14px 20px;display:flex;align-items:center;gap:20px;flex-wrap:wrap;row-gap:0}
.brand{font-weight:700;font-size:1.1rem;color:var(--ink);text-decoration:none;margin-inline-end:auto;display:flex;align-items:center;gap:10px}
.brand img{border-radius:8px;flex:none}
nav{display:flex;align-items:center;gap:18px;margin-inline-start:auto}
nav a{font-weight:600;text-decoration:none;padding:12px 4px}
.bar .pill{background:var(--accent);color:var(--bg);padding:10px 18px;border-radius:999px;white-space:nowrap}
@media (max-width:40rem){.bar .wide{display:none}.bar-in{gap:10px;padding:10px 16px}nav{gap:10px}
  .brand{font-size:1rem;gap:8px}.bar .pill{padding:8px 14px}}
/* On a phone the name, the guide and the button do not fit one line:
   the guide stays on the page (its section), the button to the app wins. */
@media (max-width:26rem){nav a:not(.pill){display:none}}
@media (max-width:20rem){.bar .pill{display:none}}

main{display:block}
.wrap{max-width:72rem;margin:0 auto;padding:0 20px}
.narrow{max-width:46rem}
.i{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.kicker{color:var(--accent);font-weight:700;font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;margin:0 0 .4em}
.lead{font-size:1.12rem}
.btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:48px;padding:10px 22px;border-radius:999px;
     background:var(--accent);color:var(--bg);font-weight:700;text-decoration:none}
.btn:hover{text-decoration:underline}
.btn.big{min-height:56px;padding:12px 26px;font-size:1.05rem;border-radius:16px}
.btn.alt{background:transparent;color:var(--accent);box-shadow:inset 0 0 0 2px var(--accent)}
.ctas{display:flex;flex-wrap:wrap;gap:12px;margin:26px 0 8px}
.ctas.center{justify-content:center}
/* The stores, as on Erbenakte's site: the app is bought there, never on the web. */
.stores{margin-top:4px}
.store{display:inline-flex;align-items:center;min-height:56px;padding:8px 22px;border-radius:14px;
       background:var(--ink);color:var(--bg);text-decoration:none;font-weight:700;font-size:1.08rem;line-height:1.15;text-align:left}
.store small{display:block;font-weight:500;font-size:.75rem;opacity:.8}
a.store:hover{text-decoration:underline}
.store.soon{background:transparent;color:var(--ink);border:1.5px dashed currentColor;opacity:.75}

/* ---- The hero, and the stage of three phones ---- */
.hero{position:relative;overflow:clip;isolation:isolate;padding:36px 0 0}
.aurora{position:absolute;inset:-20% -10% auto;height:120%;z-index:-1;pointer-events:none;filter:blur(60px);opacity:.7}
.aurora i{position:absolute;border-radius:50%;width:46vw;height:46vw;max-width:40rem;max-height:40rem}
.aurora i:nth-child(1){background:radial-gradient(closest-side,color-mix(in srgb,var(--accent) 45%,transparent),transparent);top:4%;inset-inline-start:6%}
.aurora i:nth-child(2){background:radial-gradient(closest-side,color-mix(in srgb,var(--g3) 32%,transparent),transparent);top:26%;inset-inline-end:2%}
.aurora i:nth-child(3){background:radial-gradient(closest-side,color-mix(in srgb,var(--g2) 30%,transparent),transparent);top:52%;inset-inline-start:34%}
.hero-in{display:grid;justify-items:center;text-align:center;padding-top:clamp(20px,5vh,56px)}
.hero-text{max-width:54rem}
.hero h1{font-size:clamp(2.3rem,6vw,4.6rem);line-height:1.05;letter-spacing:-.04em;font-weight:700;margin:.15em 0 .45em}
.hl{background:linear-gradient(100deg,var(--accent),var(--g2) 55%,var(--g3));-webkit-background-clip:text;background-clip:text;color:transparent}
.hero .lead{font-size:1.2rem;max-width:40rem;margin-inline:auto}
.hero .ctas{justify-content:center}
/* "Rise and stack", Werkstaffel's variant of the stage (Marius,
   2026-11-15: not every DGMD site gets the three-phone fan). One phone
   lies tilted back as on a desk and stands up as the page scrolls, then
   holds in the middle of the screen while two more screens slide up over
   it as a stack of cards, each a little smaller and further off. Still,
   it is the first phone, upright, alone. */
.stage-track{--sh:min(clamp(26rem,62vw,44rem),84svh);position:relative}
.stage{position:relative;width:min(100%,62rem);height:var(--sh);margin:28px auto 0}
.device{position:absolute;aspect-ratio:1/2;border-radius:2.4rem;padding:.55rem;background:linear-gradient(145deg,#2A2E37,#0B0C10 60%,#2A2E37);
        box-shadow:0 0 0 1px rgb(255 255 255 / .08) inset,0 2.5rem 5rem -1.5rem rgb(0 0 0 / .5),0 0 0 1px rgb(0 0 0 / .4)}
.device img{display:block;width:100%;height:100%;object-fit:cover;object-position:top;border-radius:1.9rem;background:#fff}
.stage .device{width:calc(var(--sh) * .45);top:0;left:0;right:0;margin-inline:auto}
.s-1{z-index:1}.s-2{z-index:2}.s-3{z-index:3}
.s-2,.s-3{display:none}
@media (prefers-reduced-motion:no-preference){
  .aurora i{animation:drift 18s ease-in-out infinite alternate}
  .aurora i:nth-child(2){animation-duration:23s;animation-delay:-6s}
  .aurora i:nth-child(3){animation-duration:27s;animation-delay:-11s}
  @keyframes drift{to{transform:translate(8%,10%) scale(1.15)}}
  .hero-text>*{animation:up .9s cubic-bezier(.2,.7,.2,1) backwards}
  .hero-text>:nth-child(2){animation-delay:.08s}
  .hero-text>:nth-child(3){animation-delay:.16s}
  .hero-text>:nth-child(n+4){animation-delay:.24s}
  @keyframes up{from{opacity:0;transform:translateY(1.4rem)}}
  /* On load the stage comes up; by translate, so the phones' own
     transforms stay free for the scroll. */
  .stage{animation:rise 1.3s .25s cubic-bezier(.16,.84,.24,1) backwards}
  @keyframes rise{from{opacity:0;translate:0 5rem}}
  /* The headline steps back, and the bar's button comes in once the
     hero's are gone. Shorthand first, then the longhands: the shorthand
     resets them. */
  @supports (animation-timeline:scroll()){
    .hero-text{animation:recede linear both;animation-timeline:scroll(root);animation-range:10vh 75vh}
    @keyframes recede{to{opacity:.15;transform:translateY(-4vh) scale(.95)}}
    .bar .pill{animation:pill linear both;animation-timeline:scroll(root);animation-range:45vh 65vh}
    @keyframes pill{from{opacity:0;transform:scale(.8);visibility:hidden}}
  }
  /* Stand up, pin, stack. The track is tall enough for the phone to
     stand while it comes into view and for two cards while it is held:
     it pins once the track has scrolled 50svh + half the stage + 28px
     into the screen (--pin), and each card takes half of the 120svh
     the stage is then held. */
  @supports (animation-timeline:view()) and (timeline-scope:--a){
    .stage-track{--pin:calc(50svh + var(--sh) / 2 + 28px);height:calc(var(--sh) + 28px + 120svh);view-timeline:--stage}
    .stage{position:sticky;top:calc((100svh - var(--sh)) / 2)}
    .s-2,.s-3{display:block}
    .s-1{transform-origin:50% 100%;animation:standup linear both}
    .s-2{animation:card2 linear both}
    .s-3{animation:card3 linear both}
    .s-1,.s-2,.s-3{animation-timeline:--stage}
    .s-1{animation-range:cover 0% cover var(--pin)}
    .s-2{animation-range:cover calc(var(--pin) + 4svh) cover calc(var(--pin) + 56svh)}
    .s-3{animation-range:cover calc(var(--pin) + 62svh) cover calc(var(--pin) + 114svh)}
    @keyframes standup{from{transform:perspective(1400px) rotateX(62deg) scale(.88)}to{transform:perspective(1400px) rotateX(0)}}
    @keyframes card2{0%{transform:translateY(115%) scale(.93);opacity:0}25%{opacity:1}100%{transform:translate(9%,6%) scale(.93)}}
    @keyframes card3{0%{transform:translateY(115%) scale(.86);opacity:0}25%{opacity:1}100%{transform:translate(18%,12%) scale(.86)}}
  }
}

/* ---- Three numbers that count up ----
   The number is in the page as text; where the browser can read data-n
   as an integer and drive animation by scrolling, a counter climbs from
   0 in its place. */
@property --n{syntax:"<integer>";inherits:false;initial-value:0}
.stats{padding:56px 0 0}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.stat{margin:0;padding:30px 30px 34px;border-radius:28px;background:var(--surface);color:var(--mute);font-size:1.02rem;line-height:1.5}
.num{display:block;font-size:clamp(4.2rem,9vw,7.5rem);font-weight:800;line-height:1;letter-spacing:-.05em;
     background:linear-gradient(100deg,var(--accent),var(--g2) 60%,var(--g3));-webkit-background-clip:text;background-clip:text;color:transparent}
.unit{display:block;color:var(--ink);font-size:1.45rem;line-height:1.25;margin:.25em 0 .3em}
@supports (animation-timeline:view()) and (x:attr(x type(*))){
@media (prefers-reduced-motion:no-preference){
  .num{--n:attr(data-n type(<integer>));counter-reset:n var(--n);
       animation:count linear both;animation-timeline:view();animation-range:entry 30% cover 50%}
  .num span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .num::after{content:counter(n) / ""}
  @keyframes count{from{--n:0}}
}}

/* ---- The screens as tiles, swiped sideways ---- */
.gallery-sec{--gut:max(20px,calc((100vw - 72rem) / 2 + 20px));overflow:clip}
.gallery-sec h2{max-width:46rem}
.gallery-box{position:relative}
.gallery{display:grid;grid-auto-flow:column;grid-auto-columns:min(80vw,23rem);gap:20px;
         overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;
         padding:12px var(--gut) 8px;scroll-padding-inline:var(--gut);scrollbar-width:none;margin-top:18px}
.gallery::-webkit-scrollbar{display:none}
.gallery:focus-visible{outline:3px solid var(--accent);outline-offset:-3px;border-radius:28px}
.tile{margin:0;scroll-snap-align:start;display:flex;flex-direction:column}
.tile-art{position:relative;height:clamp(25rem,46vw,32rem);border-radius:28px;overflow:hidden;
          background:radial-gradient(120% 70% at 50% 100%,var(--wash),var(--surface) 70%)}
.tile .device{width:64%;left:18%;top:11%;border-radius:2rem;padding:.45rem}
.tile .device img{border-radius:1.6rem}
.tile figcaption{padding:18px 6px 0;color:var(--mute);font-size:1.02rem;line-height:1.5}
.tile figcaption b{display:block;color:var(--ink);font-size:1.12rem;margin-bottom:.15em}
.hint{color:var(--mute);font-size:.95rem;margin:.6em auto 0}
@supports selector(::scroll-button(*)){
  .gallery-box{padding-bottom:60px}
  .gallery::scroll-button(*){position:absolute;bottom:4px;width:40px;height:40px;border:0;border-radius:50%;
       background:var(--surface);color:var(--ink);font:600 1.5rem/1 system-ui,sans-serif;cursor:pointer;
       display:grid;place-items:center;padding:0 0 3px}
  .gallery::scroll-button(*):hover{background:var(--rule)}
  .gallery::scroll-button(*):disabled{opacity:.35;cursor:default}
  .gallery::scroll-button(*):focus-visible{outline:3px solid var(--accent);outline-offset:2px}
  .gallery::scroll-button(inline-start){content:"‹" / attr(data-prev);inset-inline-end:calc(var(--gut) + 52px)}
  .gallery::scroll-button(inline-end){content:"›" / attr(data-next);inset-inline-end:var(--gut)}
  .hint{display:none}
}
@supports (animation-timeline:view()) and (timeline-scope:--a){
@media (prefers-reduced-motion:no-preference){
  .gallery-sec{view-timeline:--gal}
  .tile{animation:slidein linear both;animation-timeline:--gal;animation-range:entry 25% cover 45%}
  .tile:nth-child(2){animation-range:entry 30% cover 50%}
  .tile:nth-child(3){animation-range:entry 35% cover 55%}
  .tile:nth-child(n+4){animation-range:entry 40% cover 60%}
  @keyframes slidein{from{opacity:0;translate:40vw 0}}
  .tile .device{animation:peek linear both;animation-timeline:view(inline);animation-range:entry 0% entry 90%}
  @keyframes peek{from{transform:translateY(16%) scale(.92)}}
}}

/* ---- Features, steps, trust, prices, guide, FAQ ---- */
.sec{padding:88px 0}
.sec h2{font-size:clamp(1.9rem,4vw,3.1rem);line-height:1.08;font-weight:700;letter-spacing:-.03em;margin:.1em 0 .6em;max-width:44rem}
.sec.alt{background:var(--surface)}
.features{list-style:none;padding:0;margin:32px 0 0;display:grid;gap:20px;grid-template-columns:repeat(3,1fr)}
.features li{margin:0;background:var(--surface);border-radius:28px;padding:30px}
/* A bento: the first, fourth and fifth tile wide, so the rows close. */
.features li:is(:nth-child(1),:nth-child(4),:nth-child(5)){grid-column:span 2}
.features .i{width:52px;height:52px;padding:12px;border-radius:14px;background:var(--wash);color:var(--on-wash);stroke-width:1.6}
.features h3{margin:.9em 0 .3em;font-size:1.25rem;letter-spacing:-.01em}
.features p{margin:0;color:var(--mute);font-size:1rem}

.steps{list-style:none;padding:0;margin:32px 0 0;display:grid;gap:20px;grid-template-columns:repeat(5,1fr);counter-reset:s}
.steps li{margin:0;counter-increment:s;background:var(--bg);border-radius:28px;padding:26px 24px}
.steps li::before{content:"0" counter(s);display:block;font-size:2.6rem;font-weight:800;letter-spacing:-.04em;line-height:1;margin-bottom:.5em;
       background:linear-gradient(100deg,var(--accent),var(--g3));-webkit-background-clip:text;background-clip:text;color:transparent}
.steps h3{margin:0 0 .3em;font-size:1.12rem}
.steps p{margin:0;color:var(--mute);font-size:.98rem}

.dark{background:#0C211A;color:#EAF4EF}
.dark .kicker{color:#9FDCC3}
.dark a{color:#9FDCC3}
.split{display:grid;gap:48px;grid-template-columns:1fr 1fr;align-items:center}
.trust{list-style:none;padding:0;margin:0;display:grid;gap:14px}
.trust li{margin:0;display:flex;gap:14px;align-items:flex-start;background:rgb(255 255 255 / .06);border:1px solid rgb(255 255 255 / .1);border-radius:22px;padding:20px 22px}
.trust b{display:block;color:#EAF4EF}
.trust span{color:#C2D6CC;font-size:.98rem}
.trust .i{color:#9FDCC3;margin-top:2px}

.group{margin:1.6em 0 0;font-size:1.2rem}
.plans{display:grid;gap:20px;grid-template-columns:repeat(3,1fr);margin:16px 0 16px}
.plan{position:relative;border-radius:28px;padding:30px;background:var(--surface)}
.plan h3{margin:0;font-size:1.2rem}
.price{font-size:2.6rem;font-weight:800;letter-spacing:-.03em;margin:.2em 0 0;line-height:1.1}
.per{color:var(--mute);font-size:.95rem;margin:.2em 0 1em}
/* The launch price is the big one; the price after 31 July 2027 under it. */
.plan .later { display: block; margin-top: .25rem; font-size: .85em; opacity: .8; }

.plan ul{list-style:none;padding:0;margin:0}
.plan li{padding-inline-start:28px;position:relative;margin:.35em 0}
.plan li::before{content:"✓";position:absolute;inset-inline-start:0;color:var(--accent);font-weight:700}

.cards{list-style:none;padding:0;margin:.6em 0 0;display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(100%,19rem),1fr))}
.cards li{margin:0;display:flex}
.card{display:flex;flex-direction:column;gap:6px;width:100%;padding:18px 20px;background:var(--bg);border:1px solid var(--rule);border-radius:20px;color:var(--ink);text-decoration:none}
.card:hover{border-color:var(--accent)}
.card-title{font-weight:700;font-size:1.08rem;line-height:1.35}
.desc{color:var(--mute);font-size:.95rem;flex:1}
.more{color:var(--accent);font-weight:600;font-size:.95rem}
.all{margin:22px 0 0}

details{border-bottom:1px solid var(--rule)}
summary{cursor:pointer;font-weight:600;font-size:1.08rem;padding:18px 0;padding-inline:30px 0;list-style:none;position:relative}
summary::-webkit-details-marker{display:none}
summary::before{content:"";position:absolute;inset-inline-start:6px;top:1.55em;width:9px;height:9px;
        border-right:2.5px solid var(--accent);border-bottom:2.5px solid var(--accent);transform:rotate(-45deg)}
details[open] summary::before{transform:rotate(45deg)}
details p{margin:0 0 18px;padding-inline-start:30px;color:var(--mute)}

.cta{text-align:center;background:radial-gradient(40rem 20rem at 50% 0%,var(--wash),transparent 70%)}
.cta h2,.cta .lead{margin-inline:auto}

.foot{border-top:1px solid var(--rule);background:var(--surface);color:var(--mute);font-size:.92rem}
.foot-in{max-width:72rem;margin:0 auto;padding:28px 20px 36px}
.foot-brand{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--ink);margin:0}
.foot-brand img{border-radius:7px}

@media (max-width:70rem){.steps{grid-template-columns:repeat(3,1fr)}}
@media (max-width:60rem){
  .split{grid-template-columns:1fr}
  .features{grid-template-columns:1fr 1fr}
  .features li:is(:nth-child(4),:nth-child(5)){grid-column:auto}
  .features li:nth-child(6){grid-column:span 2}
  .steps{grid-template-columns:1fr 1fr}
}
@media (max-width:40rem){
  body{font-size:18px}
  .hero{padding-top:20px}
  .features,.plans,.stat-grid,.steps{grid-template-columns:1fr}
  .features li:is(:nth-child(1),:nth-child(6)){grid-column:auto}
  .stage-track{--sh:min(118vw,30rem,80svh)}
  .stats{padding-top:32px}
  .stat{padding:24px 24px 28px}
  .sec{padding:60px 0}
  .btn.big{flex:1 1 100%}
}

/* Headlines and tiles rise as they come into view, from the scroll
   position, not a timer. */
@supports (animation-timeline:view()){
@media (prefers-reduced-motion:no-preference){
  .stat,.features li,.steps li,.trust li,.plan,.cards li,.sec h2,.sec .kicker,.sec .lead,.sec details,.gallery-sec .btn{
    animation:reveal linear both;animation-timeline:view();animation-range:entry 5% cover 30%}
  @keyframes reveal{from{opacity:0;transform:translateY(3rem)}}
  .stat:nth-child(2),.features li:nth-child(3n+2),.plan:nth-child(2),.steps li:nth-child(2n){animation-range:entry 12% cover 36%}
  .stat:nth-child(3),.features li:nth-child(3n),.plan:nth-child(3),.steps li:nth-child(3n){animation-range:entry 19% cover 42%}
}}
