/* Shared styles for orlin.nz.

   Layout follows the two sites Sam picked on Mobbin (Nov 2026): a dark page
   with a sticky top bar and a short, centred headline (PlayAI), then large
   rounded product cards, each in a solid brand colour with the real product
   inside it (Framer). Solid colours only, real screenshots, no animation. */

@font-face{
  font-family:"Inter"; src:url(/assets/inter-var.woff2) format("woff2");
  font-weight:100 900; font-display:swap;
}
:root{
  --bg:#0E130F; --panel:#161D17; --panel-2:#1C251E; --line:#2A352C;
  --text:#F2EFE6; --muted:#A3AEA5; --dim:#6E7A70;
  --cream:#F2EFE6; --green:#2F4B34; --fr:#1C4A24; --rust:#C1500F;
  --radius:22px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:80px}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:17px; line-height:1.6; -webkit-font-smoothing:antialiased;
}
img{display:block; max-width:100%; height:auto}
a{color:inherit}
.wrap{max-width:1160px; margin:0 auto; padding:0 max(20px,env(safe-area-inset-left)) 0 max(20px,env(safe-area-inset-right))}

/* Top bar */
.bar{position:sticky; top:0; z-index:10; background:var(--bg); border-bottom:1px solid var(--line)}
.bar .wrap{display:flex; align-items:center; gap:32px; height:68px}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; font-size:20px; letter-spacing:-.02em; text-decoration:none}
.brand img{width:30px; height:30px; border-radius:7px}
.nav{display:flex; gap:28px; margin-right:auto}
.nav a{color:var(--muted); text-decoration:none; font-size:15px; font-weight:500}
.nav a:hover{color:var(--text)}

/* Buttons */
.btn{
  display:inline-block; padding:12px 22px; border-radius:999px; cursor:pointer;
  font:inherit; font-weight:600; font-size:15.5px; text-decoration:none; line-height:1.2;
  border:1px solid var(--cream); background:var(--cream); color:#0E130F;
}
.btn:hover{background:#FFFFFF; border-color:#FFFFFF}
.btn.ghost{background:transparent; color:var(--text); border-color:#4A574C}
.btn.ghost:hover{border-color:var(--text)}
.btn.small{padding:9px 18px; font-size:14.5px}
.btn.on-colour{background:#FFFFFF; border-color:#FFFFFF; color:#1F2A21}
.btn.on-colour:hover{background:var(--cream)}
a:focus-visible,.btn:focus-visible{outline:3px solid var(--cream); outline-offset:3px}

/* Hero */
.hero{text-align:center; padding:104px 0 72px}
h1{
  font-size:clamp(40px,6.4vw,72px); line-height:1.04; font-weight:750;
  letter-spacing:-.035em; margin:0 auto; max-width:15ch;
}
.lede{font-size:clamp(17px,2vw,20px); color:var(--muted); margin:24px auto 0; max-width:36em}
.actions{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:36px}

/* Section headings */
.section{padding:40px 0 0}
.section + .section{padding-top:80px}
.section-head{display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin:0 0 18px; padding-bottom:14px; border-bottom:1px solid var(--line)}
.section-head h2{margin:0; font-size:clamp(24px,3vw,30px); letter-spacing:-.025em; line-height:1.2}
.section-head p{margin:0; color:var(--dim); font-size:15px}
.eyebrow{font-size:13px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--dim); margin:0 0 18px}
.grid{display:grid; gap:20px; grid-template-columns:repeat(12,1fr)}

/* Product cards: words on the left, the real app on the right */
.card{
  border-radius:var(--radius); overflow:hidden; position:relative;
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); align-items:stretch;
}
.card .body{padding:40px 40px 40px}
.card h3{margin:0; font-size:30px; letter-spacing:-.025em; line-height:1.15}
.card p{margin:12px 0 0; font-size:16.5px; max-width:34em}
.status{font-size:14px !important; font-weight:600; margin-top:16px !important}
.links{display:flex; flex-wrap:wrap; align-items:center; gap:10px 22px; margin-top:24px}
.links a:not(.btn){font-weight:600; font-size:15.5px; text-underline-offset:4px}
.media{position:relative; min-height:320px}

.list{margin:20px 0 0; padding:0; list-style:none}
.list li{font-size:15.5px; padding:11px 0; border-top:1px solid rgba(255,255,255,.18)}
.list li strong{font-weight:650; color:#FFFFFF}

.es{background:var(--rust); color:#FFFFFF}
.es p,.es .list li{color:#FBE3D3}
.es .status,.es .links a:not(.btn){color:#FFFFFF}
.es h3 img{height:32px; width:auto}
/* The iPad shot runs off the right and bottom edges of the card. */
.es .media img{
  position:absolute; left:0; top:40px; width:820px; max-width:none;
  border-radius:14px 0 0 0; border:1px solid rgba(255,255,255,.35); border-right:0; border-bottom:0;
}

.fr{background:var(--fr); color:#FFFFFF}
.fr p,.fr .list li{color:#C9DCC4}
.fr .status{color:#F2C14E}
.fr .links a:not(.btn){color:#FFFFFF}
.fr h3{display:flex; align-items:center; gap:12px}
.fr h3 img{width:40px; height:40px; border-radius:9px}
/* The phone sits at the bottom of the card, cut off by its edge. */
.fr .media{display:flex; justify-content:center; align-items:flex-end; overflow:hidden; padding-top:40px}
.fr .media img{width:300px; margin-bottom:-150px; filter:drop-shadow(0 16px 28px rgba(0,0,0,.35))}

/* Statement */
.statement{padding:120px 0 40px}
.statement p{
  margin:0; font-size:clamp(28px,4vw,46px); line-height:1.16; font-weight:700;
  letter-spacing:-.03em; color:var(--dim); max-width:22em;
}
.statement strong{color:var(--text); font-weight:700}

/* How we work */
.steps{padding:64px 0 0}
.step{grid-column:span 4; background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:30px 30px 34px}
.step .n{font-size:15px; font-weight:600; color:var(--dim); font-variant-numeric:tabular-nums}
.step h3{margin:40px 0 0; font-size:23px; letter-spacing:-.02em}
.step p{margin:10px 0 0; color:var(--muted); font-size:16px}

/* Contact */
.contact{padding:120px 0 0}
.panel{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius)}
.contact .panel{padding:64px 40px; text-align:center}
.contact h2{margin:0 auto; font-size:clamp(32px,4.6vw,52px); line-height:1.08; letter-spacing:-.035em; max-width:16ch}
.contact p{color:var(--muted); margin:18px auto 0; max-width:30em}
.contact .meta{margin-top:26px; font-size:15px; color:var(--dim)}
.contact .meta a{color:var(--text); text-underline-offset:4px}

/* Project page */
.crumb{margin:0; padding:28px 0 0; font-size:15px}
.crumb a{color:var(--muted); text-underline-offset:4px}
.project-hero{padding:24px 0 0}
.project-hero .card .body{padding:48px 44px}
.project-hero h1{font-size:clamp(34px,4.6vw,52px); text-align:left; margin:22px 0 0; max-width:14ch}
.facts{padding:72px 0 0}
.fact{grid-column:span 4; padding:26px 0 0; border-top:1px solid var(--line)}
.fact h3{margin:0; font-size:20px; letter-spacing:-.015em}
.fact p{margin:8px 0 0; color:var(--muted); font-size:16px}

.signup{padding:96px 0 0}
.signup .panel{display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:48px; padding:48px 44px}
.signup h2{margin:0; font-size:clamp(30px,3.8vw,42px); line-height:1.1; letter-spacing:-.03em}
.signup .intro p{color:var(--muted); margin:16px 0 0}
.signup .intro ul{margin:20px 0 0; padding:0; list-style:none}
.signup .intro li{color:var(--muted); font-size:16px; padding:10px 0; border-top:1px solid var(--line)}
.signup .intro li strong{color:var(--text); font-weight:650}

form .field{margin:0 0 18px}
form .two{display:grid; grid-template-columns:1fr 1fr; gap:0 16px; align-items:end}
form label,form legend{display:block; font-size:15px; font-weight:600; margin:0 0 7px; padding:0}
form .hint{color:var(--dim); font-weight:500}
form input[type=text],form input[type=email],form input[type=tel],form select,form textarea{
  width:100%; font:inherit; font-size:16px; color:var(--text);
  background:var(--bg); border:1px solid #3A473C; border-radius:12px; padding:12px 14px;
}
form textarea{min-height:104px; resize:vertical}
form select{
  appearance:none; -webkit-appearance:none; padding-right:40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A3AEA5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 16px center;
}
form input:focus,form select:focus,form textarea:focus{outline:2px solid var(--cream); outline-offset:1px; border-color:var(--cream)}
fieldset{border:0; margin:0 0 18px; padding:0; min-width:0}
.choices{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.choice{position:relative}
.choice input{position:absolute; opacity:0; inset:0; margin:0; cursor:pointer}
.choice span{
  display:block; height:100%; border:1px solid #3A473C; border-radius:12px; padding:13px 14px;
  font-size:15.5px; font-weight:600; cursor:pointer;
}
.choice span small{display:block; font-weight:500; color:var(--muted); font-size:14px; margin-top:3px}
.choice input:checked + span{border-color:#FFFFFF; background:var(--rust); color:#FFFFFF; box-shadow:inset 0 0 0 1px #FFFFFF}
.choice input:checked + span small{color:#FBE3D3}
.choice input:focus-visible + span{outline:3px solid var(--cream); outline-offset:2px}
.hp{position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden}
.cf-turnstile{margin:4px 0 18px; min-height:65px}
.small-print{color:var(--dim); font-size:14px; margin:16px 0 0}
.small-print a{color:var(--muted)}

/* Plain text pages (thanks, privacy) */
.text-page{max-width:40em; padding:96px 0 0}
.text-page h1{text-align:left; margin:0; font-size:clamp(34px,5vw,52px); max-width:none}
.text-page p{color:var(--muted)}

footer{margin-top:80px; border-top:1px solid var(--line); padding:28px 0 calc(48px + env(safe-area-inset-bottom)); color:var(--dim); font-size:14px}
footer .wrap{display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px 24px}
footer a{color:var(--muted); text-underline-offset:3px}

section[id]{scroll-margin-top:80px}

@media (max-width:900px){
  .card{grid-template-columns:1fr}
  .card .body{padding:32px 28px 8px}
  .es .media{min-height:0; padding:24px 0 0 28px}
  .es .media img{position:static; width:150%}
  .fr .media{padding-top:28px}
  .fr .media img{width:58%; max-width:280px; margin-bottom:-35%}
  .step,.fact{grid-column:span 12}
  .step h3{margin-top:22px}
  .signup .panel{grid-template-columns:1fr; gap:32px; padding:36px 24px}
}
@media (max-width:640px){
  .nav{display:none}
  .bar .wrap{justify-content:space-between}
  .hero{padding:72px 0 56px}
  .card h3{font-size:26px}
  .project-hero .card .body{padding:32px 24px 8px}
  .statement{padding:88px 0 24px}
  .contact{padding:88px 0 0}
  .contact .panel{padding:48px 24px}
  .signup{padding:72px 0 0}
  form .two,.choices{grid-template-columns:1fr}
  .section-head{flex-direction:column; gap:4px}
}

/* ---- The book stack (home page "Our apps") ------------------------------
   After wearecollins.com/case-studies?view=spines: books lying flat in a
   slightly uneven stack, each spine in its app's colour with the name and a
   line of text on the left and the logo large on the right. An open book
   grows downward into a panel showing what the app does. */
.stack{display:flex; flex-direction:column; gap:10px; margin-top:28px}
.book{
  margin-left:var(--in,0px); margin-right:var(--out,0px);
  border-radius:6px; color:#FFFFFF; overflow:hidden;
}
.book.fr{background:var(--fr)} .book.es{background:var(--rust)}
.book.next{background:var(--panel-2); color:var(--text); box-shadow:inset 0 0 0 1px var(--line)}

.spine{
  width:100%; height:112px; display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:0 28px; margin:0; border:0; background:transparent; color:inherit;
  font:inherit; text-align:left; cursor:pointer;
}
.spine:focus-visible{outline:3px solid var(--cream); outline-offset:-6px; border-radius:6px}
.spine-text{display:flex; flex-direction:column; gap:8px; min-width:0}
.spine-text .line{font-size:19px; font-weight:500; line-height:1.3}
.spine-text em{
  font-style:normal; font-size:12px; font-weight:650; letter-spacing:.12em;
  text-transform:uppercase; opacity:.75; white-space:nowrap;
}
/* The app's own logo, large, on the right of the spine. */
.lockup{
  display:flex; align-items:center; gap:14px; flex:0 0 auto;
  font-size:52px; font-weight:800; letter-spacing:-.035em; line-height:1;
}
.lockup img{height:62px; width:auto}
.lockup img.wide{height:54px}

/* Height animates with the grid 0fr to 1fr trick, so no fixed heights. */
.detail{display:grid; grid-template-rows:0fr; transition:grid-template-rows .5s cubic-bezier(.3,.7,.2,1)}
.book.open .detail,.stack:not(.js) .detail{grid-template-rows:1fr}
.detail-inner{
  min-height:0; overflow:hidden;
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:36px;
  padding:0 28px; 
}
.book.open .detail-inner,.stack:not(.js) .detail-inner{padding-bottom:28px}
.detail-text{padding-top:8px; border-top:1px solid rgba(255,255,255,.18)}
.book.next .detail-text{border-top-color:var(--line); grid-column:1 / -1; max-width:36em}
.detail-text p{margin:14px 0 0; font-size:16.5px; line-height:1.55}
.book.fr .detail-text p{color:#C9DCC4} .book.fr .status{color:#F2C14E}
.book.es .detail-text p{color:#FBE3D3} .book.es .status{color:#FFFFFF}
.book.next .detail-text p{color:var(--muted)} .book.next .status{color:var(--text)}
.ticks{margin:16px 0 0; padding:0; list-style:none; font-size:15.5px}
.ticks li{padding:8px 0; border-top:1px solid rgba(255,255,255,.16)}
.book.next .ticks li{border-top-color:var(--line); color:var(--muted)}
.detail .links{margin-top:20px}
.detail .links a:not(.btn){color:inherit}

/* The app screenshot sits in its own panel, centred. */
.screen{height:400px; border-radius:12px; overflow:hidden}
.phone-screen{background:#163D1D; display:flex; justify-content:center; padding-top:26px}
.phone-screen img{width:230px; height:auto; align-self:flex-start; filter:drop-shadow(0 10px 18px rgba(0,0,0,.35))}
.tablet-screen{background:#A8440C; display:flex; align-items:center; justify-content:center; padding:22px}
.tablet-screen img{width:100%; height:auto; max-height:100%; object-fit:contain; border-radius:8px}

@media (prefers-reduced-motion: reduce){ .detail{transition:none} }

@media (max-width:860px){
  .book{margin-left:calc(var(--in,0px) / 5); margin-right:calc(var(--out,0px) / 5)}
  .spine{height:auto; min-height:88px; padding:16px 18px}
  .spine{flex-direction:column-reverse; align-items:flex-start; gap:10px}
  .spine-text .line{font-size:16px}
  .spine-text em{font-size:11px}
  .lockup{font-size:32px; gap:10px}
  .lockup img{height:38px} .lockup img.wide{height:32px}
  .detail-inner{grid-template-columns:1fr; gap:22px; padding:0 18px}
  .book.open .detail-inner,.stack:not(.js) .detail-inner{padding-bottom:18px}
  .screen{height:300px}
  .tablet-screen{height:auto; padding:14px}
  .phone-screen img{width:200px}
}

/* Start a project form: numbered sections */
.form-step{
  margin:34px 0 16px; padding-top:22px; border-top:1px solid var(--line);
  font-size:19px; letter-spacing:-.015em;
}
form .form-step:first-of-type{margin-top:0; padding-top:0; border-top:0}
