/* Cutting Corners — cuttingcorners.app
   Palette and type lifted from CC - Master / Website (Figma) */

/* Barlow (SIL Open Font License), self-hosted — latin subset */
@font-face { font-family: Barlow; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-700.woff2) format("woff2"); }

:root {
  --cream:     #F9F8F5;
  --yellow:    #FFDA3E;
  --yellow-lt: #FFE578;
  --teal:      #6FC7D5;
  --orange:    #F26522;
  --green:     #8FCD39;
  --charcoal:  #474646;
  --rule:      #F3F2F0;
  --page:      1184px;   /* 1120px column + 2x32px padding */
  --inner:     996px;    /* content column for hero + cards */
  --card:      310px;    /* feature card width; three fit --inner with 33px gaps */
  /* colour-band / wedge split, measured from page centre: in Figma the band changes
     colour under the centres of cards 1 and 3 (343px either side of centre); 350px
     matches the frame's actual pixel positions. */
  --band-split: 350px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: Barlow, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- header ---------- */

/* Figma: top nav 90px tall, logo 160x90 flush with the 1120px column */
.site-header { background: var(--cream); }

.site-header .wrap {
  display: flex;
  align-items: center;
  height: 90px;
}

.logo { width: 160px; }

/* ---------- hero ---------- */

/* Figma: hero 550px tall. Inner column 996px. Copy at (3, 95),
   phone 334px wide at (588, 33) — the phone art is cropped at the
   hero's bottom edge, hero_back 624px wide at (378, 100).
   The hero may grow if the copy runs long; the art is anchored to the
   bottom edge so the phone always meets the yellow. */
.hero {
  background: var(--cream);
  position: relative;
  z-index: 2;
  min-height: 550px;
  display: flex;
}

.hero .wrap {
  position: relative;
  max-width: calc(var(--inner) + 64px);
  align-self: stretch;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: 95px 0 70px;
  margin-left: 3px;
  width: 500px;
  max-width: 55%;
  overflow-wrap: anywhere;
}

.hero h1 {
  margin: 0;
  font-weight: 600;
  font-size: 60px;
  line-height: 1;
  letter-spacing: 0.5px;
}

.hero .subhead {
  margin: 20px 0 0;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.hero .subhead strong { font-weight: 700; }

.coming-soon {
  margin-top: 31px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.hero-art {
  position: absolute;
  inset: 0 32px;
  overflow: hidden;   /* hero_back is clipped by the hero's bottom edge, as in Figma */
}

.hero-art .phone {
  position: absolute;
  z-index: 2;
  left: 588px;
  bottom: 0;       /* 517px tall, so top = 33px at the 550px design height */
  width: 334px;
}

.hero-art .blocks {
  position: absolute;
  z-index: 1;
  left: 378px;
  bottom: 0;       /* 450px tall, so top = 100px at the design height */
  width: 624px;
  pointer-events: none;
}

/* ---------- features ---------- */

/* Figma "value prop section": 380px of yellow (with the lighter wedge),
   then a 170px colour band, then cream. Cards start 96px down and the
   phones (409px tall) run 62px past the bottom of the band. */
.features {
  position: relative;
  background: var(--cream);
  padding-top: 96px;
  padding-bottom: 25px;
}

.features::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 380px;
  background: var(--yellow);
  pointer-events: none;
}

/* the lighter diagonal wedge: top edge ends 350px left of centre,
   bottom edge ends 70px left of centre */
.features::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 380px;
  background: var(--yellow-lt);
  clip-path: polygon(0 0, calc(50% - var(--band-split)) 0, calc(50% - var(--band-split) + 280px) 100%, 0 100%);
  pointer-events: none;
}

.features .wrap {
  position: relative;
  z-index: 2;
  max-width: calc(var(--inner) + 64px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, var(--card));
  justify-content: space-between;
  align-items: start;
}

.card { position: relative; }

.card .shot { width: var(--card); }

.card .panel {
  position: relative;
  margin-top: -1px;   /* phone PNG is cropped where the panel starts */
  min-height: 220px;
  background: #fff;
  border: 1px solid var(--charcoal);
  padding: 34px 24px 30px;
  text-align: center;
}

.card .panel img {
  height: 22px;
  width: auto;
  margin: 0 auto 22px;
}

.card h2 {
  margin: 0 0 14px;
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.5px;
}

.card p {
  margin: 0;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.3px;
}

/* the colour band — boundaries sit at the centres of the three cards:
   orange | teal | green | teal, splits at centre-350, centre, centre+350 */
.band {
  position: absolute;
  z-index: 1;
  top: 380px;
  left: 0; right: 0;
  height: 170px;
  display: flex;
}

.band span:nth-child(1) { width: calc(50% - var(--band-split)); background: var(--orange); }
.band span:nth-child(2) { width: var(--band-split); background: var(--teal); }
.band span:nth-child(3) { width: var(--band-split); background: var(--green); }
.band span:nth-child(4) { flex: 1; background: var(--teal); }

/* ---------- footer ---------- */

/* Figma "bottom stuff": logo 250px, 22px gap, tagline, 21px gap, CTA */
.site-footer { background: var(--cream); }

.footer-main {
  text-align: center;
  padding: 0 32px 80px;
}

.footer-main .logo {
  width: 250px;
  margin: 0 auto 22px;
}

.footer-main p {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0.6px;
}

.footer-main p strong { font-weight: 700; }

.footer-main .coming-soon { margin-top: 21px; }

.footer-legal { border-top: 1px solid var(--rule); }

.footer-legal .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 64px;
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.footer-legal nav { display: flex; gap: 26px; }

.footer-legal a { text-decoration: none; }

.footer-legal a:hover,
.footer-legal a:focus-visible { text-decoration: underline; }

/* ---------- long-form legal pages ---------- */

.doc { max-width: 760px; margin: 0 auto; padding: 56px 32px 80px; }
.doc h1 { font-weight: 600; font-size: 40px; line-height: 1.05; letter-spacing: 0.5px; margin: 0 0 6px; }
.doc .meta { font-size: 14px; margin: 0 0 36px; opacity: .75; }
.doc h2 { font-weight: 600; font-size: 22px; margin: 40px 0 10px; }
.doc p, .doc li { font-size: 16px; line-height: 1.62; }
.doc ul { padding-left: 22px; }
.doc table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid #E4E2DE; padding: 9px 12px; text-align: left; vertical-align: top; }
.doc th { background: #fff; font-weight: 600; }
.doc a { color: var(--charcoal); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .site-header .wrap { height: 72px; }
  .logo { width: 120px; }

  .hero { min-height: 0; display: block; }
  .hero .wrap { padding-top: 34px; text-align: center; }
  .hero-copy { padding: 0; margin: 0 auto; width: auto; max-width: 500px; }
  .hero h1 { font-size: 38px; }
  .hero-art { position: relative; inset: auto; margin-top: 26px; overflow: visible; }
  .hero-art .phone { position: relative; left: auto; bottom: auto; margin: 0 auto; width: 270px; }
  .hero-art .blocks { display: none; }

  .features { padding-top: 56px; }
  .features::before, .features::after { height: 240px; }
  .cards { grid-template-columns: var(--card); justify-content: center; gap: 40px; }
  .band { top: 240px; height: 110px; }
  .band span:nth-child(1) { width: 25%; }
  .band span:nth-child(2), .band span:nth-child(3) { width: 25%; }
  .footer-main .logo { width: 180px; }
  .footer-main p { font-size: 17px; }

  .footer-legal .wrap { flex-direction: column; justify-content: center; height: auto; padding-top: 18px; padding-bottom: 18px; text-align: center; }
  .footer-legal nav { flex-wrap: wrap; justify-content: center; gap: 18px; }

  .doc h1 { font-size: 30px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .hero h1 { font-size: 31px; }
  .hero .subhead { font-size: 17px; }
  .footer-main br { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
