/*!
Stylesheet: Codekyt Apps — apps.codekyt.com
Description: Deep navy heroes with warm cream body sections, sunset orange accents, Sora display type.
Written against the markup in pages/ and parts/: sections carry one class, and everything inside
them is styled by element. Headings are <hgroup>s: eyebrow <p>, heading, then an optional lead <p>.
*/

:root{
  --navy:#08162b;
  --cream:#f8f2e7;
  --cream-2:#fffaf0;
  --paper:#fffdf8;
  --ink:#10223a;
  --muted:#68717b;
  --orange:#cb612b;
  --coral:#ef7854;
  --sage:#6e8c68;
  --gold:#e4ad50;
  --red:#a84735;
  --line:rgba(16,34,58,.13);
  --shadow:0 24px 70px rgba(8,22,43,.13);
  --ease:cubic-bezier(.22,.8,.25,1);
  interpolate-size:allow-keywords;
}

/* ===== Base ===== */
*{box-sizing:border-box;margin:0;padding:0}
/* The fixed header is 78px, so every in-page anchor lands clear of it. */
html{scroll-behavior:smooth;scroll-padding-top:95px}
body{font-family:"Inter",sans-serif;background:var(--cream);color:var(--ink);line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:hidden}
body.menu-open{overflow:hidden}
h1,h2,h3{font-family:"Sora",sans-serif;line-height:1.08;letter-spacing:-.04em}
h1 em,h2 em{font-style:normal;color:var(--orange)}
a{color:inherit;text-decoration:none}
img,svg{display:block;max-width:100%}
ul,ol{list-style:none}
.wrap{width:min(1180px,calc(100% - 48px));margin:auto}
.icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* ===== Headings ===== */
hgroup>p:first-child{display:inline-block;color:var(--orange);font:700 12px/1 "Inter",sans-serif;letter-spacing:.16em;text-transform:uppercase}
hgroup h2{font-size:clamp(40px,5vw,62px);margin:18px 0}
hgroup>p:not(:first-child){color:var(--muted);font-size:18px}
hgroup>p a{color:var(--orange);font-weight:700}

/* ===== Reveal engine ===== */
.reveal,[data-stagger]>*{opacity:0;transform:translateY(24px);transition:opacity .8s var(--ease),transform .8s var(--ease)}
.reveal.in,[data-stagger].in>*{opacity:1;transform:none}
[data-stagger].in>*:nth-child(2){transition-delay:.1s}
[data-stagger].in>*:nth-child(3){transition-delay:.2s}
[data-stagger].in>*:nth-child(4){transition-delay:.3s}

/* ===== Header & navigation ===== */
body>header{position:fixed;inset:0 0 auto;z-index:50;color:#fff;transition:.3s}
body>header.scrolled{background:rgba(8,22,43,.92);backdrop-filter:blur(16px);box-shadow:0 1px rgba(255,255,255,.08)}
body>header>.wrap{height:78px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:7px}
.brand img{height:27px;width:auto}
.brand small{font:700 9px/1 "Inter",sans-serif;letter-spacing:.2em;color:#f3b17f;border-left:1px solid rgba(255,255,255,.3);padding-left:10px;margin-left:3px}
body>header nav{display:flex;align-items:center;gap:8px}
body>header nav a{padding:10px 16px;border-radius:12px;color:rgba(255,255,255,.76);font-size:14px;font-weight:600}
body>header nav>a:hover,.menu>a:hover{background:rgba(255,255,255,.08);color:#fff}
body>header button{display:none;background:none;border:0;width:42px;height:42px}
body>header button span{display:block;width:22px;border-top:2px solid #fff;margin:6px auto;transition:transform .3s ease}
.menu-open>header button span:first-child{transform:translateY(4px) rotate(45deg)}
.menu-open>header button span:last-child{transform:translateY(-4px) rotate(-45deg)}

/* Apps dropdown */
.menu{position:relative}
.menu>a{display:flex;align-items:center;gap:5px}
.menu>a .icon{width:14px;height:14px;stroke-width:2.2;transition:.25s}
.menu:hover>a .icon,.menu.open>a .icon{transform:rotate(180deg)}
.menu>div{position:absolute;right:0;top:calc(100% + 13px);min-width:340px;background:var(--paper);border-radius:20px;padding:9px;box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translateY(-9px);transition:.25s}
.menu>div:before{content:"";position:absolute;inset:-15px 0 auto;height:15px}
.menu:hover>div,.menu:focus-within>div{opacity:1;visibility:visible;transform:none}
.menu>div a{display:flex;align-items:center;gap:14px;padding:12px;border-radius:14px;color:var(--muted);font-size:12.5px;font-weight:400;line-height:1.45;transition:background .2s}
.menu>div a:hover{background:var(--cream)}
.menu>div svg{width:44px;flex:none}
.menu>div b{display:block;color:var(--ink);font:600 15px/1.3 "Sora",sans-serif;letter-spacing:-.02em}

/* ===== Buttons & badges ===== */
.btn{display:inline-flex;align-items:center;gap:10px;padding:15px 23px;border-radius:14px;font:700 14px/1 "Inter",sans-serif;transition:.25s;border:1px solid transparent;background:var(--coral);color:#fff;box-shadow:0 14px 35px rgba(239,120,84,.27)}
.btn:hover{transform:translateY(-2px)}
.btn.cream{background:var(--cream-2);color:var(--ink);box-shadow:none}
.btn.outline{background:none;color:inherit;border-color:var(--line);box-shadow:none}
.btn .icon,.more .icon{width:18px}
.more{display:inline-flex;align-items:center;gap:9px;color:var(--orange);font-weight:700}
.badges{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.badges a{width:184px;border-radius:11px;border:1px solid rgba(255,255,255,.28);overflow:hidden;transition:.25s}
.badges a:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.5);box-shadow:0 12px 28px rgba(8,22,43,.2)}
.badges svg{width:100%;height:auto}

/* A screenshot in a thin device edge. Padding rather than a border, so the image keeps its
   own slightly tighter radius — a replaced element is clipped to its inner curve. */
.phone{width:252px;height:436px;padding:3px;background:#343333;border-radius:24px;box-shadow:0 28px 70px rgba(0,0,0,.3);object-fit:cover;flex:none}

/* ===== Heroes ===== */
/* .hero is a page's dark opener; .short and .doc are shorter, .home is the photo split. */
.hero{background:var(--navy);color:#fff;min-height:620px;padding:170px 0 100px;position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.25) .7px,transparent .7px);background-size:7px 7px;opacity:.05;pointer-events:none}
.hero>*{position:relative;z-index:1}
.hero .wrap{max-width:820px}
.hero hgroup>p:first-child{color:#f3b17f}
.hero h1{font-size:clamp(52px,6vw,78px);margin:22px 0}
.hero h1 em{color:#f3a56c}
.hero h1+p{color:rgba(255,255,255,.65);font-size:19px;max-width:650px;margin-bottom:28px}
.hero.short{min-height:490px}
.hero.doc{min-height:0;padding:165px 0 85px}
.hero.doc .wrap{max-width:1040px}
.hero.doc h1{font-size:clamp(46px,6vw,70px);margin:20px 0}
.hero.doc h1+p{color:rgba(255,255,255,.62);margin:0}

/* Home: the two glows are background layers rather than blurred elements. */
.hero.home{min-height:760px;padding:160px 0 90px;background:radial-gradient(circle 410px at 50px 120px,rgba(203,97,43,.22) 40%,transparent),radial-gradient(circle 335px at calc(100% - 75px) calc(100% - 65px),rgba(110,140,104,.15) 35%,transparent),var(--navy)}
.hero.home .wrap{max-width:none;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:80px}
.hero.home h1{font-size:clamp(54px,6vw,82px);margin:24px 0}
.hero.home h1+p{max-width:560px;color:rgba(255,255,255,.67);margin-bottom:35px}
/* The photograph, masked into a set of rings over a warm glow. The inner shadow (:after) is
   what stops a bright photo edge cutting a hard disc out of the navy. */
.hero figure{height:530px;position:relative;display:grid;place-items:center;background:radial-gradient(circle min(290px,50vw),rgba(239,120,84,.5),rgba(228,173,80,.22) 40%,transparent)}
.hero figure:before{content:"";position:absolute;width:430px;height:430px;border-radius:50%;border:1px solid rgba(255,255,255,.12);box-shadow:0 0 0 55px rgba(255,255,255,.025),0 0 0 110px rgba(255,255,255,.018)}
.hero figure img,.hero figure:after{width:min(400px,72vw);height:auto;aspect-ratio:1;border-radius:50%;z-index:2}
.hero figure img{position:relative;object-fit:cover;box-shadow:0 34px 80px rgba(0,0,0,.5)}
.hero figure:after{content:"";position:absolute;box-shadow:inset 0 0 0 1px rgba(255,255,255,.4),inset 0 -70px 95px -45px rgba(8,22,43,.8)}
.hero figure p{position:absolute;z-index:3;background:rgba(255,253,248,.94);color:var(--ink);border-radius:16px;padding:13px 18px;box-shadow:var(--shadow);font-size:13px}
.hero figure p:first-of-type{left:0;top:27%}
.hero figure p+p{right:-15px;bottom:22%;display:flex;gap:9px;align-items:center;font-weight:700}
.hero figure b,.hero figure small{display:block}
.hero figure small{color:var(--muted);font-size:11px}
.hero figure .icon{color:var(--sage)}

/* ===== Content sections ===== */
.apps,.faq,.contact,.links{padding:120px 0}

/* Apps grid — one .app card per published app */
.apps>.wrap>hgroup{max-width:650px;text-align:center;margin:0 auto 65px}
.app{background:var(--paper);border-radius:34px;display:grid;grid-template-columns:1fr .8fr;min-height:570px;overflow:hidden;box-shadow:var(--shadow)}
.app+.app{margin-top:34px}
.app>div{padding:70px 35px}
.app header{display:flex;gap:18px;align-items:center}
.app header svg{width:82px;flex:none;filter:drop-shadow(0 12px 20px rgba(130,64,25,.2))}
.app hgroup>p:first-child{color:var(--muted);font-size:13px;line-height:1.65;letter-spacing:.1em}
.app h3{font-size:30px;margin-top:4px}
.app .pitch{font:600 clamp(28px,3.5vw,44px)/1.18 "Sora",sans-serif;letter-spacing:-.04em;margin:42px 0 20px}
.app .pitch strong{color:var(--orange)}
.app>div>p:not(.pitch){max-width:520px;color:var(--muted);font-size:17px}
.app footer{margin-top:35px;display:flex;gap:25px;align-items:center;flex-wrap:wrap}
/* The three spice dots are background layers too. */
.app figure{display:grid;place-items:end center;padding-top:60px;background:radial-gradient(circle closest-side,var(--sage) 97%,transparent) right 50px top 52px/80px 80px no-repeat,radial-gradient(circle closest-side,var(--red) 97%,transparent) left 40px bottom 60px/54px 54px no-repeat,radial-gradient(circle closest-side,var(--gold) 97%,transparent) left 50px top 140px/38px 38px no-repeat,#e8d7bc}
.app .phone{transform:translateY(40px)}

/* How we build */
.principles{background:var(--cream-2);padding:105px 0}
.principles hgroup{width:80%;margin-bottom:60px}
.principles ol{display:grid;grid-template-columns:repeat(4,1fr);gap:44px}
.principles li{position:relative}
.principles li:before{content:counter(list-item,decimal-leading-zero);position:absolute;right:0;top:0;color:#c6b8a5;font:600 12px "Sora",sans-serif}
.principles li .icon{color:var(--orange);width:29px;height:29px;margin-bottom:26px}
.principles h3{font-size:21px;margin-bottom:12px}
.principles li p{color:var(--muted)}

/* Our promise */
.promise{background:#e8dcc9;padding:110px 0}
.promise .wrap{display:grid;grid-template-columns:1fr 1.3fr;gap:70px;align-items:start}
.promise h2{font-size:clamp(32px,3.6vw,46px)}
.promise hgroup>p:last-child,.promise li p{color:#6d6151;font-size:inherit}
.promise ul{display:grid;grid-template-columns:1fr 1fr;gap:36px 44px}
.promise li{display:grid;grid-template-columns:auto 1fr;align-content:start;column-gap:16px}
.promise li .icon{width:27px;height:27px;color:var(--orange);grid-row:span 2;margin-top:2px}
.promise h3{font:600 17px/1.35 "Sora",sans-serif;letter-spacing:-.02em}
.promise li p{font-size:15px}

/* FAQ — native <details>; the open/close animates where ::details-content is supported */
.faq{background:var(--cream-2)}
.faq .wrap{display:grid;grid-template-columns:.38fr .62fr;gap:80px}
.faq .wrap>div:first-child{position:sticky;top:130px;height:max-content}
.faq h2{font-size:42px;margin:20px 0 32px}
details{border-top:1px solid var(--line)}
details:last-child{border-bottom:1px solid var(--line)}
summary{display:flex;justify-content:space-between;gap:20px;padding:25px 0;font:600 18px "Sora",sans-serif;cursor:pointer;list-style:none}
summary::-webkit-details-marker{display:none}
summary:after{content:"";flex:none;width:18px;height:18px;background:linear-gradient(currentColor 0 0) center/100% 1.5px no-repeat,linear-gradient(currentColor 0 0) center/1.5px 100% no-repeat;transition:background-size .25s}
details[open] summary:after{background-size:100% 1.5px,1.5px 0}
details::details-content{height:0;overflow:hidden;transition:height .3s,content-visibility .3s allow-discrete}
details[open]::details-content{height:auto}
details p{color:var(--muted);padding:0 50px 26px 0}
details a{color:var(--orange);text-decoration:underline}

/* Support — contact */
.contact>.wrap>hgroup{max-width:850px;margin:0 auto 55px}
.contact aside{max-width:850px;margin:60px auto 0;border-top:1px solid var(--line);padding-top:50px;display:flex;gap:28px}
.contact aside>.icon{width:32px;height:32px;flex:none;margin-top:3px;color:var(--orange)}
.contact aside h2{font-size:30px;margin:10px 0}
.contact aside hgroup>p:last-child{font-size:inherit}

/* Numbered link list — the legal index and the 404 */
.links{background:var(--cream-2)}
.links li{border-top:1px solid var(--line)}
.links li:last-child{border-bottom:1px solid var(--line)}
.links a{display:grid;grid-template-columns:70px 1fr auto;gap:30px;align-items:center;padding:55px 0}
.links a:before{content:counter(list-item,decimal-leading-zero);color:var(--orange);font:700 13px "Sora",sans-serif}
.links a:after{content:"→";font-size:32px;transition:.25s}
.links a:hover:after{transform:translateX(8px)}
.links h2{font-size:40px;margin:13px 0}
.links hgroup>p:last-child{max-width:650px;font-size:inherit}

/* ===== Legal document ===== */
.legal{background:var(--cream-2);padding:80px 0 120px}
.legal .wrap{max-width:1040px;display:grid;grid-template-columns:190px 1fr;gap:75px;align-items:start}
.legal nav{position:sticky;top:115px;display:flex;flex-direction:column;gap:11px;font-size:13px}
.legal nav b{font-family:"Sora",sans-serif;margin-bottom:8px}
.legal nav a{color:var(--muted)}
.legal article{min-width:0}
.legal .dates span{display:inline-block;background:#eee3d2;border-radius:8px;padding:7px 10px;margin:0 7px 15px 0;font-size:12px;font-weight:700;color:var(--ink)}
.legal h2{font-size:29px;margin:55px 0 18px;padding-top:20px}
.legal h3{font-size:21px;margin:36px 0 14px}
.legal p{color:#4f5b68;margin:13px 0}
.legal article ul,.legal article ol{padding-left:23px;color:#4f5b68;margin:15px 0}
.legal article ul{list-style:disc}
.legal article ol{list-style:decimal}
.legal li{margin:8px 0}
.legal article a{color:var(--orange);text-decoration:underline}
.legal hr{border:0;border-top:1px solid var(--line);margin:38px 0}
.legal table{width:100%;border-collapse:collapse;margin:24px 0;font-size:14px;background:var(--paper)}
.legal th,.legal td{text-align:left;vertical-align:top;padding:13px 14px;border:1px solid var(--line)}
/* Appendix A is one table per app. Left to itself each sizes its label column to its
   own longest label, so the tables disagree down the page — pin it instead. */
.legal :is(th,td):first-child{width:240px}
.legal code{background:#eee7dc;border-radius:4px;padding:2px 5px;font-size:12px;overflow-wrap:anywhere}

/* ===== Footer ===== */
body>footer{background:#061224;color:#fff;padding:70px 0 25px}
body>footer>div:first-child{display:flex;justify-content:space-between;align-items:center;padding-bottom:50px;border-bottom:1px solid rgba(255,255,255,.1)}
body>footer p{color:rgba(255,255,255,.48)}
body>footer>div:last-child{display:flex;justify-content:space-between;padding-top:25px;color:rgba(255,255,255,.42);font-size:13px}
body>footer nav{display:flex;gap:25px}
body>footer nav a:hover{color:#fff}

/* ===== Responsive ===== */
@media(max-width:900px){.apps,.faq,.contact,.links{padding:85px 0}.hero.home{padding-bottom:30px}.hero.home .wrap{grid-template-columns:minmax(0,1fr);text-align:center}.hero.home .wrap>div{min-width:0}.hero.home h1+p{margin-left:auto;margin-right:auto}.hero figure{height:500px}.app{grid-template-columns:1fr}.app figure{min-height:500px}.principles ol{grid-template-columns:1fr 1fr}.promise{padding:85px 0}.promise .wrap{grid-template-columns:1fr;gap:48px}.faq .wrap{grid-template-columns:1fr}.faq .wrap>div:first-child{position:static}.legal .wrap{grid-template-columns:1fr}.legal nav{display:none}}
@media(max-width:640px){.wrap{width:calc(100% - 32px)}body>header nav{position:fixed;inset:78px 0 auto;background:var(--navy);padding:20px;flex-direction:column;transform:translateY(-140%);transition:.3s;z-index:-1}body>header nav a{width:100%;text-align:center;padding:15px}.menu-open>header nav{transform:none}body>header button{display:block}.menu{width:100%}.menu>a{justify-content:center}.menu>div{position:static;min-width:0;display:none;opacity:1;visibility:visible;transform:none;background:rgba(255,255,255,.06);box-shadow:none;border-radius:14px;padding:7px;margin-bottom:6px}.menu>div:before{display:none}.menu.open>div{display:block}.menu>div a{color:rgba(255,255,255,.6);text-align:left;padding:11px;gap:12px}.menu>div a:hover{background:rgba(255,255,255,.09)}.menu>div b{color:#fff}.hero{padding-top:145px;min-height:540px}.hero.home{padding-top:135px}.hero.home .wrap{gap:25px}.hero.home h1{font-size:48px}.hero.home h1+p{font-size:17px}.hero figure{transform:scale(.82);margin:-35px 0}.hero figure p:first-of-type{left:-15px}.hero figure p+p{right:-20px}.app>div{padding:35px 25px}.app+.app{margin-top:22px}.app figure{min-height:430px}.app .phone{transform:scale(.87) translateY(65px)}.apps>.wrap>hgroup h2,.principles h2,.contact>.wrap>hgroup h2{font-size:38px}.principles hgroup{width:100%}.principles ol{grid-template-columns:1fr;gap:35px}.promise ul{grid-template-columns:1fr;gap:30px}.faq .wrap{gap:45px}.links a{grid-template-columns:40px 1fr}.links a:after{display:none}.links h2{font-size:29px}.legal{padding-top:50px}.legal table{display:block;overflow-x:auto}.legal :is(th,td):first-child{width:auto}.legal h2{font-size:25px}body>footer>div.wrap{display:block}body>footer p{margin-top:18px}body>footer nav{flex-wrap:wrap;margin-top:18px;gap:15px 22px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal,[data-stagger]>*{opacity:1;transform:none;transition:none}body>header button span,details::details-content{transition:none}}
