/* Dermamina design system tokens, taken from redesign/homepage-mock-apple.html.
   Rules that are easy to break and matter here:
   teal is the only accent; never more than two background colours in a view;
   headings are 700 with negative tracking; buttons are 980px pills in sentence
   case; one hairline, and cards are not elevated. */

@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;
  src:url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;
  src:url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  --white:#ffffff;
  --cloud:#f5f5f7;
  --ink:#1d1d1f;
  --ink-soft:#6e6e73;
  --ink-faint:#86868b;
  --navy:#244B61;
  --navy-deep:#1B3C4F;
  --navy-grad:
    radial-gradient(90% 130% at 88% -15%,rgba(0,174,199,.30),transparent 55%),
    radial-gradient(70% 110% at 0% 115%,rgba(0,174,199,.14),transparent 55%),
    linear-gradient(150deg,#2C5A74 0%,#244B61 52%,#1B3C4F 100%);
  --teal:#00AEC7;
  --teal-dark:#008fa5;
  --teal-on-navy:#7fe3f2;
  --line:#d2d2d7;
  --radius:28px;
  --radius-panel:18px;
  --radius-tag:20px;
  --font:-apple-system,BlinkMacSystemFont,"Inter",system-ui,"Helvetica Neue",Arial,sans-serif;
  color-scheme:light;
}

*{box-sizing:border-box}

body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:var(--font);
  font-size:17px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

h1,h2,h3{font-weight:700;letter-spacing:-.018em;margin:0}
h1{font-size:clamp(32px,5.2vw,48px);letter-spacing:-.02em;line-height:1.06}
h2{font-size:clamp(22px,3vw,28px);line-height:1.16}
h3{font-size:19px}

/* The payoff beat of a headline renders teal, never italic. */
em{font-style:normal;color:var(--teal)}
.on-navy em{color:var(--teal-on-navy)}

a{color:var(--teal);text-decoration:none}
a:hover{color:var(--teal-dark)}
::selection{background:rgba(0,174,199,.22)}

.logo img{height:20px;width:auto;display:block}

/* Every button is a 980px pill in sentence case. Press states are unstyled. */
button,.btn{
  font:inherit;
  font-weight:600;
  border:0;
  cursor:pointer;
  border-radius:980px;
  padding:13px 24px;
  background:var(--teal);
  color:var(--white);
  transition:background .2s cubic-bezier(.25,.6,.2,1);
}
button:hover:not(:disabled),.btn:hover{background:var(--teal-dark)}
button:disabled{background:var(--ink-faint);cursor:not-allowed}
button.secondary{background:transparent;color:var(--teal);box-shadow:inset 0 0 0 1px var(--line)}
button.secondary:hover:not(:disabled){background:var(--cloud)}
button.small{padding:9px 18px;font-size:15px}

input,textarea{
  font:inherit;
  width:100%;
  padding:13px 15px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--white);
  color:var(--ink);
}
input:focus,textarea:focus{outline:2px solid rgba(0,174,199,.35);outline-offset:1px;border-color:var(--teal)}
textarea{min-height:76px;resize:vertical}
label{display:block;font-size:14px;font-weight:600;color:var(--ink-soft);margin:18px 0 7px}

/* Cards sit on a hairline, never on a shadow. */
.card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px;
}

.tag{
  display:inline-block;
  font-size:12px;
  font-weight:600;
  padding:5px 12px;
  border-radius:var(--radius-tag);
  background:var(--cloud);
  color:var(--ink-soft);
}
.tag.live{background:rgba(0,174,199,.12);color:var(--teal-dark)}

.muted{color:var(--ink-soft);font-size:15px}
.faint{color:var(--ink-faint);font-size:13px}

.on-navy{background:var(--navy-deep);background-image:var(--navy-grad);color:var(--white)}
.on-navy .muted{color:rgba(255,255,255,.72)}

.eyebrow{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-faint)}
.on-navy .eyebrow{color:var(--teal-on-navy)}

/* Reveal on scroll: opacity and a 30px rise over 1s. No bounce, no scale. */
@keyframes rise{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}
.rise{animation:rise 1s cubic-bezier(.25,.6,.2,1) both}
.rise-2{animation-delay:.1s}
.rise-3{animation-delay:.2s}
@media (prefers-reduced-motion:reduce){.rise{animation:none}}

@media (max-width:640px){
  :root{--radius:22px}
  body{font-size:16px}
}
