/* delegate pages. Follow docs/guidelines/responsive_css.md before changing this file. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 400;
  font-display: swap;
  src: url("fonts/newsreader-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/newsreader-italic.woff2") format("woff2");
}

:root {
  --bg: #fdfaf4;
  --panel: #f5f0e6;
  --ink: #1f1a14;
  --muted: #6d6862;
  --faint: #8e8a84;
  --accent: #ba4900;
  --accent-soft: rgba(186, 73, 0, .12);
  --line: rgba(31, 26, 20, .16);
  --bubble: #d1f2d7;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; padding: 0; }
input { appearance: none; min-width: 0; font-size: max(16px, 1rem); }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--accent); text-decoration: none; }
::placeholder { color: var(--faint); opacity: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (hover: hover) {
  a:hover { opacity: .7; }
}

/* Shared */

.page { position: relative; overflow-x: clip; }
.decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.wrap { position: relative; width: min(55rem, 86%); margin-inline: auto; }
.narrow { position: relative; width: min(35rem, 88%); margin-inline: auto; }

.wordmark {
  font-size: clamp(1.0625rem, .95rem + .45vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--accent);
}

.muted { color: var(--muted); }
.note { font-size: .875rem; color: var(--muted); }
.error { font-size: .9375rem; font-weight: 400; color: var(--accent); }

/* Panels stacked in one grid cell keep the tallest height, so switching never shifts the page. */
.cells { display: grid; }
.cells > * { grid-area: 1 / 1; }
.cells > .is-off { visibility: hidden; }
.enter { animation: step-in .5s ease both; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 1rem 2.125rem;
  border-radius: .625rem;
  background: var(--accent);
  color: var(--bg);
  font-size: clamp(.9375rem, .85rem + .3vw, 1.0625rem);
  line-height: 1.2;
  text-align: center;
  transition: opacity .2s;
}
.btn:disabled { opacity: .35; }
[aria-busy="true"] .btn { opacity: .6; }

.link-btn {
  padding-block: .625rem;
  font-size: .9375rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.link-btn.accent { color: var(--accent); text-decoration: none; }

.field {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--accent);
  font-size: clamp(1.3125rem, 1rem + 1vw, 1.6875rem);
  line-height: 1.45;
}
.field:focus-within { border-bottom-width: 2px; margin-bottom: -1px; }
.field input { flex: 1; font-size: inherit; line-height: inherit; letter-spacing: .02em; outline: none; }
.field-prefix { flex: none; color: var(--muted); }
.field-prefix.accent { color: var(--accent); }
.field .code-input { letter-spacing: .4em; }

/* Landing */

.landing {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
}

.orb { position: absolute; }
.orb > div { width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--line); }
.orb-1 { top: -24vw; right: -14vw; width: 58vw; height: 58vw; animation: float-a 21s ease-in-out infinite; }
.orb-1 > div { animation: morph-b 26s ease-in-out infinite; }
.orb-2 { top: 60vw; left: -9vw; width: 22vw; height: 22vw; animation: float-b 18s ease-in-out infinite; }
.orb-2 > div { animation: morph-a 24s ease-in-out infinite; }
.orb-3 { top: 330vw; right: 6vw; width: 26vw; height: 26vw; border-radius: 50%; border: 1px solid rgba(31, 26, 20, .14); animation: float-b 24s ease-in-out infinite; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  padding-top: clamp(1.625rem, 3.5vw, 2.75rem);
}

.hero { padding-block: clamp(4rem, 11vw, 9.375rem) clamp(4.375rem, 10vw, 8.125rem); }
.hero > :not(.hero-figure) { position: relative; }
.hero-figure {
  position: absolute;
  top: clamp(2.5rem, 8vw, 6rem);
  right: clamp(-1.5rem, -1vw, 0rem);
  width: clamp(10rem, 30vw, 22.5rem);
  height: clamp(11.25rem, 33vw, 25rem);
  opacity: .9;
}
.fig-ellipse { position: absolute; top: 6%; left: 9%; width: 83%; height: 75%; animation: float-a 20s ease-in-out infinite; }
.fig-ellipse > div { width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(31, 26, 20, .22); animation: morph-b 28s ease-in-out infinite; }
.fig-arc {
  position: absolute;
  top: 37%;
  left: 42%;
  width: 33%;
  height: 15%;
  border: 1px solid rgba(186, 73, 0, .45);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  animation: float-a 23s ease-in-out infinite reverse;
}
.fig-line { position: absolute; top: 42%; left: 0; width: 100%; height: 1px; background: rgba(31, 26, 20, .18); }
.fig-dot { position: absolute; top: 41%; left: 66%; width: 9px; height: 9px; border-radius: 50%; background: rgba(186, 73, 0, .7); }

.hero-kicker { font-size: clamp(1.25rem, .9rem + 1.1vw, 1.8125rem); color: var(--muted); }
.hero-title {
  margin-top: clamp(1.25rem, 3.2vw, 2.5rem);
  font-size: clamp(3.5rem, 1rem + 9.5vw, 7.375rem);
  font-weight: 200;
  line-height: .98;
  letter-spacing: -.03em;
  color: var(--accent);
}

.waitlist { margin-top: clamp(2.5rem, 6vw, 4.625rem); max-width: 40rem; }
.waitlist-step > * + * { margin-top: 1.375rem; }
.waitlist-intro { font-size: clamp(.9375rem, .85rem + .35vw, 1rem); color: var(--muted); }
.waitlist-lead { font-size: clamp(1.1875rem, 1rem + .6vw, 1.4375rem); line-height: 1.3; }
.waitlist-step .waitlist-lead + .note { margin-top: .25rem; }

.flows { position: relative; height: calc(100vh + 220vh); height: calc(100svh + 220svh); margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.flows-stage { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; height: 100svh; }
.flows-tabs {
  position: relative;
  display: flex;
  gap: 1.375rem;
  padding: .5rem 7% 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.flows-tabs::-webkit-scrollbar { display: none; }
.flows-tabs button {
  flex: none;
  margin-bottom: -1px;
  padding: .625rem 0 .75rem;
  border-bottom: 1px solid transparent;
  font-size: .9375rem;
  font-style: italic;
  color: var(--muted);
  transition: color .3s, border-color .3s;
}
.flows-tabs [aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.flows-grid {
  margin-block: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.25rem), 1fr));
  gap: clamp(1.875rem, 5vw, 4.375rem);
  align-items: start;
}
.flows-asks { display: none; }
.flows-asks button {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  width: 100%;
  padding-block: .6875rem;
  border-top: 1px solid var(--line);
  font-size: clamp(.9375rem, .85rem + .35vw, 1.0625rem);
  line-height: 1.4;
  letter-spacing: -.01em;
  text-align: left;
  color: var(--muted);
  transition: color .3s;
}
.flows-asks [aria-pressed="true"] { color: var(--accent); }
.flows-asks .kind { flex: none; font-size: .8125rem; font-style: italic; }
.flows-quotes p { font-size: 1rem; color: var(--muted); }
.flows-quotes .enter { animation-duration: .6s; }
.sentence { font-size: clamp(1.375rem, .9rem + 1.6vw, 2.25rem); line-height: 1.5; letter-spacing: -.01em; }
.sentence span { display: inline-block; }
.sentence .you { color: var(--accent); }
.sentence.enter { animation: none; }
.sentence.enter span { animation: step-in 1.1s ease both; }
.sentence.enter span:nth-child(2) { animation-delay: .42s; }
.sentence.enter span:nth-child(3) { animation-delay: .84s; }
.sentence.enter span:nth-child(4) { animation-delay: 1.26s; }
.sentence.enter span:nth-child(5) { animation-delay: 1.68s; }
.sentence.enter span:nth-child(6) { animation-delay: 2.1s; }

@media (min-width: 40rem) {
  .flows-tabs, .flows-quotes { display: none; }
  .flows-asks { display: block; }
}

/* Too short for the sticky stage (landscape phones, high zoom): show it as a normal section. */
@media (max-height: 33.75rem) {
  .flows { height: auto; }
  .flows-stage { position: relative; height: auto; padding-bottom: 2rem; }
  .flows-grid { margin-top: 2rem; }
}

.block { padding-bottom: clamp(4.375rem, 10vw, 8.125rem); }
.block-title { font-size: clamp(1.3125rem, 1rem + 1vw, 1.6875rem); font-weight: inherit; line-height: 1.35; }

.caps .block-title { margin-bottom: clamp(1.875rem, 5vw, 3.5rem); }
.caps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: clamp(2.25rem, 6vw, 3.75rem);
  align-items: center;
}
.caps-list { display: flex; flex-direction: column; align-items: flex-start; }
.caps-list button {
  padding-block: .375rem;
  font-size: clamp(2rem, 1.2rem + 2.4vw, 2.75rem);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-align: left;
  color: var(--faint);
  transition: color .3s;
}
.caps-list [aria-pressed="true"] { color: var(--accent); }
.caps-panel > * + * { margin-top: clamp(1.125rem, 2.6vw, 1.625rem); }
.caps-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(7.5rem, 16vw, 10rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(31, 26, 20, .14);
  color: var(--accent);
}
.caps-icon svg { width: 60%; }
.caps-desc { font-size: clamp(.9375rem, .85rem + .4vw, 1.0625rem); line-height: 1.6; color: var(--muted); }
.caps-eg { font-size: clamp(1.0625rem, .95rem + .45vw, 1.1875rem); font-style: italic; line-height: 1.45; color: var(--accent); }

.calls-head { max-width: 35rem; margin-bottom: clamp(1.625rem, 4vw, 2.5rem); }
.calls-head p { margin-top: .75rem; font-size: clamp(.9375rem, .85rem + .35vw, 1.0625rem); line-height: 1.65; color: var(--muted); }
.faq { padding-bottom: clamp(4.375rem, 11vw, 8.75rem); }
.faq-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(.5rem, 3vw, 4.375rem);
  padding-block: clamp(1.25rem, 3vw, 1.625rem);
  border-top: 1px solid var(--line);
}
.faq-row h3 { font-size: clamp(1.1875rem, 1rem + .6vw, 1.375rem); font-weight: inherit; line-height: 1.35; }
.faq-row p { font-size: clamp(1rem, .9rem + .4vw, 1.125rem); line-height: 1.6; color: var(--muted); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  padding-block: 1.375rem clamp(2.125rem, 4vw, 2.875rem);
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--muted);
}
.site-footer a { color: inherit; }
.site-footer .wordmark-dot { color: var(--accent); }

/* Careers */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(2.25rem, 6vw, 3.75rem);
}
.split > * { min-width: 0; }
.careers-hero { align-items: center; padding-block: clamp(3rem, 8vw, 6rem) clamp(4.375rem, 10vw, 8.125rem); }
.careers-hero > div > * + * { margin-top: clamp(1.25rem, 3vw, 1.75rem); }
.careers-title {
  font-size: clamp(2.5rem, 1.2rem + 5vw, 4.5rem);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--accent);
  text-wrap: balance;
}
.lead { font-size: clamp(1.0625rem, .95rem + .5vw, 1.25rem); line-height: 1.5; color: var(--muted); }
.careers-photo img { width: 100%; border-radius: .875rem; }
.careers-photo figcaption { margin-top: .75rem; font-style: italic; }

.eyebrow { margin-bottom: .5rem; font-size: .875rem; font-style: italic; color: var(--accent); }
.prose > * + * { margin-top: 1rem; }
.prose p { font-size: clamp(1rem, .9rem + .4vw, 1.125rem); line-height: 1.65; color: var(--muted); }
.prose strong { font-weight: 400; color: var(--ink); }
.together { margin-top: clamp(1.625rem, 4vw, 2.5rem); }
.faq-row .note { display: block; margin-top: .25rem; }

.asks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  column-gap: clamp(1.875rem, 5vw, 4.375rem);
  margin-block: clamp(1.875rem, 5vw, 3rem);
  padding: 0;
  list-style: none;
}
.asks li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: .6875rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1rem, .9rem + .4vw, 1.125rem);
  line-height: 1.4;
}
.asks li > :first-child { min-width: 0; }
.asks .kind { flex: none; max-width: 40%; font-size: .8125rem; font-style: italic; text-align: right; color: var(--muted); }

.panel { padding: clamp(1.75rem, 5vw, 3.5rem); border-radius: .875rem; background: var(--panel); }
.panel > * + * { margin-top: 1rem; }
.apply { align-items: center; }
.apply > * + * { margin-top: 0; }
.apply-list { padding: 0; list-style: none; }
.apply-list li { display: flex; gap: 1rem; padding-block: .875rem; border-top: 1px solid var(--line); line-height: 1.55; color: var(--muted); }
.apply-list b { flex: none; font-weight: 400; color: var(--accent); }

.person { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.person-top { display: flex; align-items: center; gap: 1rem; }
.person-top img { flex: none; width: 4.5rem; border-radius: 50%; }
.person h3 { font-size: clamp(1.1875rem, 1rem + .6vw, 1.375rem); font-weight: inherit; line-height: 1.35; }

/* Invite flow */

.onboarding { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.ring {
  position: absolute;
  top: -11.25rem;
  right: -10rem;
  width: min(35rem, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(31, 26, 20, .12);
}
.onboarding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}
.back { min-height: 2.75rem; font-size: .9375rem; color: var(--muted); }
.progress { display: flex; gap: .375rem; margin-top: clamp(1.375rem, 3vw, 2rem); }
.progress span { flex: 1; height: 2px; border-radius: 2px; background: var(--line); transition: background .4s; }
.progress .is-done { background: var(--accent); }
.onboarding-main { flex: 1; padding-block: clamp(3rem, 9vh, 6.875rem) clamp(3rem, 8vh, 5.625rem); }
.onboarding-step > * + * { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.onboarding .field { gap: .875rem; padding-bottom: .875rem; font-size: clamp(1.375rem, 1rem + 1.4vw, 1.75rem); }
.onboarding .field-prefix { color: var(--accent); }

.step-head > * + * { margin-top: .875rem; }
.step-head h1 { font-size: clamp(2.25rem, 1.2rem + 4vw, 3.5rem); font-weight: 200; line-height: 1.05; letter-spacing: -.025em; text-wrap: pretty; }
.step-head p { font-size: clamp(.9375rem, .85rem + .4vw, 1.0625rem); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.step-head .inline-link { color: var(--accent); }
.inviter { display: flex; align-items: center; gap: .75rem; }
.avatar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 400;
}

.otp { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.5rem, 1.6vw, .875rem); cursor: text; }
.otp-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(3.5rem, 9vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.375rem);
}
.otp-cell.is-filled, .otp-cell.is-current { border-color: var(--accent); }
.otp:focus-within .otp-cell.is-current::after { content: ""; width: 1px; height: .9em; background: var(--accent); animation: blink 1s steps(1) infinite; }
.otp input { position: absolute; inset: 0; width: 100%; opacity: 0; font-size: 16px; }

.providers { border-top: 1px solid rgba(31, 26, 20, .14); }
.provider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem .25rem;
  border-bottom: 1px solid rgba(31, 26, 20, .14);
  font-size: clamp(1.125rem, .95rem + .7vw, 1.3125rem);
  text-align: left;
}
.provider-mark {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .625rem;
  border: 1px solid var(--line);
  font-size: 1.0625rem;
  font-weight: 400;
}
.provider-mark.google { color: #1570d1; }
.provider-mark.outlook { color: #0068ad; }
.provider-label { flex: 1; min-width: 0; }
.provider-status { flex: none; font-size: .9375rem; color: var(--accent); }

@media (hover: hover) {
  .provider:hover { background: rgba(186, 73, 0, .04); }
}

.wa-preview { display: flex; flex-direction: column; gap: .625rem; padding: clamp(1.125rem, 3vw, 1.625rem); border-radius: .875rem; background: var(--panel); }
.wa-preview .note { font-size: .8125rem; }
.wa-bubble {
  align-self: flex-end;
  max-width: 92%;
  padding: .75rem 1rem;
  border-radius: .75rem .75rem .25rem .75rem;
  background: var(--bubble);
  font-size: clamp(1rem, .9rem + .45vw, 1.125rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.onboarding-footer { padding-bottom: clamp(1.5rem, 4vw, 2.25rem); font-size: .8125rem; color: var(--muted); }
.onboarding-footer a { color: inherit; text-decoration: underline; }

/* Motion */

@keyframes float-a { 33% { transform: translate(-40px, 28px) rotate(6deg); } 66% { transform: translate(26px, -32px) rotate(-5deg); } }
@keyframes float-b { 50% { transform: translate(48px, -36px); } }
@keyframes morph-a { 0%, 100% { border-radius: 62% 38% 46% 54% / 58% 42% 58% 42%; } 50% { border-radius: 38% 62% 63% 37% / 41% 59% 41% 59%; } }
@keyframes morph-b { 0%, 100% { border-radius: 44% 56% 68% 32% / 38% 62% 38% 62%; } 50% { border-radius: 60% 40% 34% 66% / 64% 34% 66% 36%; } }
@keyframes step-in { from { opacity: 0; transform: translateY(7px); } }
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
