/* Styles for the marketing site (app/views/layouts/marketing.html.erb).
   Extracted from an inline <style> block in that layout. */

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

html, body, div, span, applet, button, input, select, textarea, object, iframe, h1, h2, h3, h4, h5, h6, hr, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 100%;
  margin: 0;
  min-width: 0;
  outline: 0;
  padding: 0;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}

body {
  line-height: 1.35;
}

ol, ul, menu {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
  content: none;
}

img, svg {
  display: block;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

:root {

  --lch-black: 26% 0 0;
  --lch-white: 100% 0 0;
  --lch-lemon: 92.5% 0.2 103;
  --header-opacity: 0.9;
  --header-height: 55px;

  /* "Try it FREE" CTA gradient — lives entirely on the dark side of
     the lemon hue (h≈100), so the brand is felt as a warm citrus
     undertone rather than a yellow shout. */
  --cta-grad-from:        oklch(0.26 0.06 100);
  --cta-grad-mid:         oklch(0.16 0.03 95);
  --cta-grad-to:          oklch(0.20 0.05 80);
  --cta-grad-from-hover:  oklch(0.32 0.08 100);
  --cta-grad-mid-hover:   oklch(0.20 0.04 95);
  --cta-grad-to-hover:    oklch(0.26 0.07 80);
  --cta-grad-text:        oklch(1 0 0);
  --cta-grad-shadow:      oklch(0.20 0.06 95 / 0.45);
  --cta-grad-shine:       oklch(1 0 0 / 0.08);

  /* Redefine colors for dark mode */
  @media (prefers-color-scheme: dark) {
    --lch-black: 100% 0 0;
    --lch-white: 16% 0.02 240;

    /* Mirror the inversion: cream-lemon-tinted light gradient, dark text. */
    --cta-grad-from:        oklch(0.97 0.04 100);
    --cta-grad-mid:         oklch(0.93 0.06 95);
    --cta-grad-to:          oklch(0.95 0.05 80);
    --cta-grad-from-hover:  oklch(0.99 0.05 100);
    --cta-grad-mid-hover:   oklch(0.96 0.07 95);
    --cta-grad-to-hover:    oklch(0.98 0.06 80);
    --cta-grad-text:        oklch(0.16 0.02 240);
    --cta-grad-shadow:      oklch(0.16 0.04 95 / 0.45);
    --cta-grad-shine:       oklch(1 0 0 / 0.30);
  }

  --color-black: oklch(var(--lch-black));
  --color-white: oklch(var(--lch-white));
  --color-lemon: oklch(var(--lch-lemon));

  --font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, Aptos, Roboto, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-size: 18px;

}

html {
  background-color: var(--color-lemon);
}

body {
  background-color: var(--color-white);
  padding-top: var(--header-height);
}

html, body {
  color: var(--color-black);
  font-family: var(--font-family);
  font-size:   var(--font-size);
  font-optical-sizing: auto;
  min-height: 100vh;
  overflow-x: hidden;
}

.header {
  height: var(--header-height);
  padding: 0 1rem;
  background: linear-gradient(to bottom, var(--color-lemon) 0%, oklch(var(--lch-lemon) / 0.75) 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0; /* Ensures full width on mobile */
  z-index: 100; /* Above everything */

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/*
.header {
  height: 55px;
  padding: 1rem;
  background: var(--color-lemon);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;    
  user-select: none;         
}
*/

.header__logo {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 1.4rem;
  animation: squeezeIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition: transform 250ms ease-in-out;
}

.header__logo:hover {
  outline: 0;
  animation: none !important;
  transform: scale(1.05) !important;
  opacity: 1 !important;
}

@media (hover: none) {
  .header__logo:active {
    animation: none !important;
    transform: scale(1.03) !important;
    opacity: 1 !important;
  }
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  margin-right: -0.55rem;
}

.header__nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__nav-text {
  display: none;
  padding: 0.5em 0.5em;
  color: var(--color-black);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: underline;
  text-decoration-color: oklch(var(--lch-black) / 0.3);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  border-radius: 0.35em;
  transition:
    text-decoration-color     150ms ease,
    text-decoration-thickness 150ms ease;
}

.header__nav-text:hover,
.header__nav-text:focus-visible {
  text-decoration-color: var(--color-black);
  text-decoration-thickness: 0.12em;
  outline: 0;
}

.header__nav-text:focus-visible {
  outline: 2px solid oklch(var(--lch-black) / 0.5);
  outline-offset: 3px;
}

.header__nav-text--active {
  text-decoration-color: var(--color-black);
  text-decoration-thickness: 0.12em;
}

.header__nav-mobile {
  position: relative;
}

.header__nav-toggle {
  position: relative;
  display: block;
  width: 28px;
  height: 22px;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.header__nav-toggle:focus-visible {
  outline: 2px solid oklch(var(--lch-black) / 0.5);
  outline-offset: 4px;
  border-radius: 2px;
}

.header__nav-toggle-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background-color: var(--color-black);
  transition:
    top       200ms cubic-bezier(0.37, 1, 0.74, 1),
    transform 200ms cubic-bezier(0.37, 1, 0.74, 1);
}

.header__nav-toggle-line--top    { top: 6px; }
.header__nav-toggle-line--bottom { top: 14px; }

.header__nav-mobile[data-open] .header__nav-toggle-line--top {
  top: 10px;
  transform: rotate(45deg);
}

.header__nav-mobile[data-open] .header__nav-toggle-line--bottom {
  top: 10px;
  transform: rotate(-45deg);
}

/*
 * Drawer open/close animation — inspired by apple.com global nav.
 * The panel slides in from offscreen right with Apple's signature
 * ease cubic-bezier(0.52, 0.16, 0.24, 1); children cascade in with
 * staggered delays on cubic-bezier(0.52, 0.16, 0.52, 0.84), each
 * riding a longer curve on transform than on opacity so the motion
 * settles after it appears.  Open state is driven by [data-open]
 * toggled in JS so we own the transition timing end-to-end.
 */
.header__nav-drawer {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 12rem;
  padding: 0.5rem;
  background-color: oklch(var(--lch-white) / 0.97);
  backdrop-filter: blur(0.5em);
  -webkit-backdrop-filter: blur(0.5em);
  border-radius: 0.75em;
  box-shadow:
    0 0 0 1px oklch(var(--lch-black) / 0.08),
    0 12px 32px -8px oklch(var(--lch-black) / 0.22);
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  transform: translateX(calc(100% + 1.5rem));
  pointer-events: none;
  transition:
    opacity    0.28s cubic-bezier(0.32, 0.08, 0.24, 1),
    transform  0.42s cubic-bezier(0.52, 0.16, 0.24, 1),
    visibility 0s    linear 0.42s;
}

.header__nav-mobile[data-open] .header__nav-drawer {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  transition:
    opacity    0.22s cubic-bezier(0.32, 0.08, 0.24, 1) 0.04s,
    transform  0.52s cubic-bezier(0.52, 0.16, 0.24, 1),
    visibility 0s    linear 0s;
}

.header__nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__nav-menu + .header__nav-menu {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid oklch(var(--lch-black) / 0.08);
}

.header__nav-item {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity   0.18s cubic-bezier(0.52, 0.16, 0.52, 0.84),
    transform 0.32s cubic-bezier(0.52, 0.16, 0.52, 0.84);
}

.header__nav-mobile[data-open] .header__nav-item {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity   0.24s cubic-bezier(0.52, 0.16, 0.52, 0.84) calc(0.08s + (var(--i, 0) * 0.055s)),
    transform 0.44s cubic-bezier(0.52, 0.16, 0.52, 0.84) calc(0.06s + (var(--i, 0) * 0.055s));
}

.header__nav-link {
  display: block;
  padding: 0.55em 0.85em;
  color: var(--color-black);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 0.5em;
  transition: background-color 150ms ease;
}

.header__nav-link:hover,
.header__nav-link:focus-visible {
  background-color: oklch(var(--lch-black) / 0.06);
  outline: 0;
}

.header__nav-link--active {
  background-color: oklch(var(--lch-black) / 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .header__nav-drawer,
  .header__nav-mobile[data-open] .header__nav-drawer,
  .header__nav-item,
  .header__nav-mobile[data-open] .header__nav-item,
  .header__nav-toggle-line {
    transition-duration: 0.01s;
    transition-delay: 0s;
  }
}

.footer {
  margin-top: 10em;
  padding-bottom: 1.5em;
  font-size: 21px;
}

h1 {
  font-size:   450%;
  font-weight: 600;
  text-align:  center;
  margin-top:  1rem;
  line-height: 1.15;
}

p {
  text-align: center;
  margin-top: 1rem;
  font-size: 21px;
}

.main__jtbd {
  margin-top: 7em;
  padding: 0 1rem;
}

/*
 * .main__jtbd > p
 * Default measure for the body copy under every feature block
 * headline.  Keeps the line length in the editorial sweet spot
 * (~65 characters at the body font size) so prose doesn't run
 * the full container width on big screens.  Modifiers below
 * can tighten or loosen this on a per-block basis.
 */
.main__jtbd > p {
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}

/*
 * .main__jtbd--note
 * A single-paragraph editorial moment between the hero CTA and
 * the first product block.  No headline — just a narrow column
 * of prose carrying the point of view.  Same typography as the
 * body, tightened measure for comfortable reading.
 */
.main__jtbd--note > p {
  max-width: 34em;
}

/*
 * .main__jtbd--kicker
 * A small editorial aside that runs right under the hero CTA —
 * postscript voice, "by the way" register.  Tightens the measure
 * even more than --note, drops the size, and lets a single word
 * inside ride along with .h-mark when it wants to.
 */
.main__jtbd--kicker {
  margin-top: 2.25em;
}

.main__jtbd--kicker > p {
  max-width: 30em;
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.55;
  color: oklch(var(--lch-black) / 0.78);
}

/*
 * .h-mark
 * Highlighter marker behind a word.  Reads as if a lemon
 * highlighter passed across the text.  Two-stop linear-gradient
 * rather than a real underline, so it sits *behind* descenders
 * and tracks the line-height of the surrounding headline at any
 * size.  --h-mark-color and --h-mark-coverage let an instance
 * tune the band's intensity and height without writing CSS.
 */
.h-mark {
  --h-mark-color: oklch(var(--lch-lemon) / 0.55);
  --h-mark-coverage: 0.32em;

  background-image: linear-gradient(
    transparent calc(100% - var(--h-mark-coverage)),
    var(--h-mark-color) calc(100% - var(--h-mark-coverage))
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.h-mark--strong {
  --h-mark-color: oklch(var(--lch-lemon) / 0.78);
}

/*
 * .faq
 * Plain editorial Q&A — no accordion, no chevrons, no ceremony.
 * Questions and answers are left-aligned (the only break from the
 * centered page grid) because editorial prose wants a fixed
 * left edge to scan.  Hairline separators between items provide
 * the rhythm; the first question does without an opener border so
 * the section flows out of the preceding prose block cleanly.
 */
.faq {
  margin: 7em auto 0;
  padding: 0 1rem;
  max-width: 44em;
}

.faq__item {
  padding: 1.75em 0;
  border-top: 1px solid oklch(var(--lch-black) / 0.1);
}

.faq__item:first-child {
  border-top: 0;
}

.faq__question {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: left;
}

.faq__answer {
  margin: 0.55em 0 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  text-align: left;
  color: oklch(var(--lch-black) / 0.82);
}

/*
 * .manifesto
 * Long editorial scroll of principles — one declarative h2 title
 * per block, each followed by a short paragraph.  Same narrow
 * measure as .faq so the two reads feel related, but titles are
 * a step more prominent because each principle stands on its own
 * (not paired with a question).  Left-aligned prose — the same
 * intentional break from the centered grid that .faq uses.
 */
.manifesto {
  margin: 6em auto 0;
  padding: 0 1rem;
  max-width: 44em;
}

.manifesto__principle {
  padding: 2em 0;
  border-top: 1px solid oklch(var(--lch-black) / 0.1);
}

.manifesto__principle:first-child {
  border-top: 0;
}

.manifesto__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-align: left;
}

.manifesto__body {
  margin: 0.65em 0 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-align: left;
  color: oklch(var(--lch-black) / 0.82);
}

.rule {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  margin-top: 6em;
}

.rule::before,
.rule::after {
  content: "";
  flex: 0 1 70px;
  height: 1px;
  background-color: oklch(var(--lch-black) / 0.18);
}

.rule__mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.55;
}

.cta {
  margin-top: 2.5em;
  padding: 0 1rem;
  text-align: center;
}

.cta--closing {
  margin-top: 3em;
  padding: 4.5em 1rem 4em;
}

.cta__title {
  font-size: 220%;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
}

.cta__button {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  padding: 0.85em 1.8em;
  background-color: var(--cta-grad-mid);
  background-image:
    radial-gradient(120% 160% at 0% 0%,
      var(--cta-grad-shine) 0%,
      transparent 55%),
    linear-gradient(135deg,
      var(--cta-grad-from) 0%,
      var(--cta-grad-mid) 50%,
      var(--cta-grad-to) 100%);
  color: var(--cta-grad-text);
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  text-decoration: none;
  border: 0;
  border-radius: 980px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 var(--cta-grad-shine),
    0 6px 18px -6px var(--cta-grad-shadow),
    0 1px 2px oklch(0 0 0 / 0.18);
  transition:
    background-image 200ms cubic-bezier(0.37, 1, 0.74, 1),
    box-shadow 200ms cubic-bezier(0.37, 1, 0.74, 1),
    transform 150ms cubic-bezier(0.37, 1, 0.74, 1);
  will-change: transform;
}

.cta__button:hover {
  background-image:
    radial-gradient(140% 180% at 0% 0%,
      var(--cta-grad-shine) 0%,
      transparent 60%),
    linear-gradient(135deg,
      var(--cta-grad-from-hover) 0%,
      var(--cta-grad-mid-hover) 50%,
      var(--cta-grad-to-hover) 100%);
  box-shadow:
    inset 0 1px 0 var(--cta-grad-shine),
    0 14px 32px -10px var(--cta-grad-shadow),
    0 2px 4px oklch(0 0 0 / 0.22);
}

.cta__button:active {
  transform: scale(0.97);
}

.cta__button:focus-visible {
  outline: 2px solid var(--color-lemon);
  outline-offset: 3px;
}

.cta__button-arrow {
  display: inline-block;
  transition: transform 150ms cubic-bezier(0.37, 1, 0.74, 1);
}

.cta__button:hover .cta__button-arrow {
  transform: translateX(0.15em);
}

.cta__hint {
  margin-top: 0.9rem;
  font-size: 15px;
  opacity: 0.55;
}

.cta__button--nav {
  display: none;
  padding: 0.55em 1.15em;
  font-size: 0.95rem;
}

.pricing {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1.25em;
  margin: 3em auto 0;
  padding: 0 1rem;
  max-width: 40em;
}

@media (min-width: 48em) {
  .pricing {
    flex-direction: row;
    align-items: stretch;
    gap: 1.5em;
    max-width: 56em;
  }
}

.pricing__tier {
  flex: 1;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  padding: 2.25em 1.5em 2em;
  background-color: oklch(var(--lch-white) / 0.55);
  border: 1px solid oklch(var(--lch-black) / 0.1);
  border-radius: 1.25em;
  text-align: center;
  transition:
    transform  220ms cubic-bezier(0.37, 1, 0.74, 1),
    box-shadow 220ms cubic-bezier(0.37, 1, 0.74, 1);
}

.pricing__tier:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -20px oklch(var(--lch-black) / 0.2);
}

.pricing__tier--featured {
  overflow: hidden;
  background-color: oklch(var(--lch-lemon) / 0.18);
  border-color: oklch(var(--lch-lemon) / 0.55);
}

.pricing__tier-drop {
  position: absolute;
  z-index: -1;
  top: -70px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background-color: oklch(var(--lch-lemon) / 0.55);
  filter: blur(55px);
  pointer-events: none;
}

.pricing__tier-drop--left {
  top: auto;
  right: auto;
  bottom: -80px;
  left: -60px;
}

.pricing__tier-name {
  margin: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: oklch(var(--lch-black) / 0.7);
  text-transform: uppercase;
}

.pricing__tier-price {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1em 0.25em;
  margin: 0.15em 0 0.25em;
  color: var(--color-black);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.pricing__tier-currency {
  align-self: flex-start;
  margin-top: 0.4em;
  font-size: 2.1rem;
  opacity: 0.75;
}

.pricing__tier-amount {
  font-size: 5.25rem;
}

.pricing__tier-period {
  flex-basis: 100%;
  margin-top: 0.2em;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: oklch(var(--lch-black) / 0.6);
}

/*
 * .pricing__tier-cta
 * The sign-up button + "no credit card" hint, repeated inside
 * each tier card so the reader never has to scroll past the
 * card boundary to commit.  margin-top: auto pins the CTA to
 * the bottom of the flex column so both cards align their
 * buttons on the same baseline regardless of note length.
 */
.pricing__tier-cta {
  margin-top: auto;
  padding-top: 1.25em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
}

.pricing__tier-note {
  margin: 0;
  max-width: 24em;
  font-size: 1rem;
  line-height: 1.5;
  color: oklch(var(--lch-black) / 0.65);
  letter-spacing: -0.005em;
}

@media (min-width: 75.1875em) {
  .header__nav-mobile  { display: none; }
  .header__nav-text    { display: inline-flex; }
  .cta__button--nav    { display: inline-flex; }
}

::selection {
  background-color: var(--color-lemon);
  color: #333;
}

@keyframes squeezeIn {
  0% { 
    transform: scale(0.8) rotate(-2deg); /* Start squished & tilted */
    opacity: 0;
  }
  50% { 
    transform: scale(1.05); /* Mid-squeeze pop */
  }
  100% { 
    transform: scale(1) rotate(0deg); 
    opacity: 1;
  }
}
