/* ==========================================================================
   Tikinomics — Design System
   Clean / academic foundation with a restrained tropical (tiki) accent.
   ========================================================================== */

:root {
  /* Palette */
  --ink:        #15302e;   /* near-black teal, body text & headings */
  --ink-soft:   #45554f;
  --muted:      #7a6f5d;   /* warm sand-grey for captions */
  --line:       #e3ddcf;   /* hairline borders */
  --paper:      #faf7f0;   /* warm off-white page bg */
  --paper-2:    #ffffff;   /* card bg */
  --sand:       #f2ecdd;   /* subtle fill */

  --teal:       #1f7a73;   /* primary brand */
  --teal-deep:  #12534e;
  --teal-tint:  #e7f1ef;
  --coral:      #d9663f;   /* warm accent */
  --gold:       #e9b949;   /* certificate / premium accent */

  --up:         #1f7a4f;   /* gains */
  --down:       #b5402c;   /* losses */

  /* Type */
  --serif: Georgia, 'Times New Roman', 'Iowan Old Style', serif;
  --sans:  'Helvetica Neue', Arial, system-ui, -apple-system, sans-serif;
  --mono:  'SFMono-Regular', 'Menlo', 'Consolas', monospace;

  /* Geometry */
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(21,48,46,.06), 0 8px 24px rgba(21,48,46,.06);
  --shadow-lg: 0 12px 40px rgba(21,48,46,.12);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--teal);
  margin: 0 0 .6rem;
}
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: .7rem 1.3rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
  text-decoration: none;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--sand); text-decoration: none; }
.btn-gold { background: var(--gold); color: #3a2c08; }
.btn-gold:hover { filter: brightness(.96); text-decoration: none; }
.btn-block { width: 100%; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,240,.85); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav .logo { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--ink-soft); font-size: .92rem; font-weight: 500; }
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.nav-cta { display: flex; gap: .6rem; align-items: center; }
.nav-toggle { display: none; }

/* ---- Google / social sign-in ---- */
.gbtn { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%;
        padding: .7rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
        background: #fff; color: #3c4043; font: 600 .95rem var(--sans); cursor: pointer; }
.gbtn:hover { background: #f7f8f8; box-shadow: var(--shadow); }
.divider { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; color: var(--muted); font-size: .8rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- Cards ---- */
.card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 1.6rem; }

/* ---- Pills / badges ---- */
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: .25rem .6rem; border-radius: 999px;
}
.pill-up   { background: #e4f1e9; color: var(--up); }
.pill-down { background: #f7e4df; color: var(--down); }
.pill-teal { background: var(--teal-tint); color: var(--teal-deep); }
.pill-gold { background: #faf0d2; color: #876514; }

/* ---- Hero ---- */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 38ch; }

/* faint topographic / wave motif */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(40% 60% at 85% 10%, rgba(31,122,115,.06), transparent 70%),
    radial-gradient(35% 50% at 5% 90%, rgba(217,102,63,.05), transparent 70%);
}

/* ---- TVI Ticker Card ---- */
.tvi-card { padding: 1.7rem 1.7rem 1.4rem; }
.tvi-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.tvi-head .label { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.tvi-value { font-family: var(--serif); font-weight: 700; font-size: 3.2rem; line-height: 1; letter-spacing: -.02em; }
.tvi-value .cents { font-size: 1.6rem; color: var(--ink-soft); }
.tvi-row { display: flex; align-items: baseline; gap: .8rem; margin-top: .5rem; }
.tvi-abs { font-weight: 600; }
.spark { width: 100%; height: 64px; margin: 1rem 0 .4rem; }

.tvi-deltas { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 1rem; }
.delta {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .6rem .7rem; background: var(--sand);
}
.delta .k { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.delta .v { font-weight: 700; font-size: 1rem; }
.up { color: var(--up); } .down { color: var(--down); }

/* ---- Live counter strip ---- */
.counter-strip {
  background: var(--teal-deep); color: #eaf4f2; text-align: center;
  padding: 22px 0;
}
.counter-num {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem); color: #fff;
  letter-spacing: .01em;
}
.counter-strip .live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #57d6a0; margin-right: 7px; box-shadow: 0 0 0 0 rgba(87,214,160,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(87,214,160,.6); }
  70% { box-shadow: 0 0 0 9px rgba(87,214,160,0); }
  100% { box-shadow: 0 0 0 0 rgba(87,214,160,0); }
}

/* ---- Sections ---- */
section.band { padding: 64px 0; }
.band-sand { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 60ch; margin: 0 auto 40px; text-align: center; }

.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature .ic {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--teal-tint); color: var(--teal-deep); margin-bottom: .9rem;
}
.feature h3 { margin: 0 0 .4rem; }
.feature p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---- Pricing ---- */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; max-width: 1040px; margin: 0 auto; }
.tier { padding: 1.8rem; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--teal); box-shadow: var(--shadow-lg); position: relative; }
.tier .price { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; margin: .3rem 0; }
.tier .price small { font-size: .9rem; color: var(--muted); font-family: var(--sans); font-weight: 400; }
.tier ul { list-style: none; padding: 0; margin: 1rem 0 1.6rem; }
.tier li { padding: .42rem 0 .42rem 1.6rem; position: relative; color: var(--ink-soft); font-size: .94rem; border-bottom: 1px dashed var(--line); }
.tier li::before { content: "✦"; color: var(--teal); position: absolute; left: 0; top: .42rem; }
.tier .btn { margin-top: auto; }

/* ---- Sign up form ---- */
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink-soft); }
.form-field input {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 1rem; font-family: var(--sans);
  background: var(--paper-2); color: var(--ink);
}
.form-field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.form-note { font-size: .8rem; color: var(--muted); }

/* ---- Insurance band ---- */
.insure {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: linear-gradient(180deg, #fff, var(--paper));
  border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 1.6rem 1.8rem;
}

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #c9d3d0; padding: 48px 0 28px; margin-top: 0; }
.site-footer a { color: #c9d3d0; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { color: #fff; font-size: .95rem; margin: 0 0 .7rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: .25rem 0; font-size: .9rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .82rem; color: #8ea29e; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ==========================================================================
   Individual Mug Page
   ========================================================================== */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 18px 0; }
.breadcrumb a { color: var(--muted); }
.mug-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.mug-photo {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 4/5; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow);
}
.mug-photo img { width: 100%; height: 100%; object-fit: cover; }
.mug-photo .ph { color: var(--muted); text-align: center; padding: 2rem; }

.val-box { background: var(--teal-deep); color: #eaf4f2; border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.val-box .pt { font-family: var(--serif); font-size: 2.8rem; font-weight: 700; color: #fff; line-height: 1; }
.val-box .ci { font-size: .92rem; color: #b6d4cf; margin-top: .5rem; }
.val-box .ci b { color: #fff; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.spec-table td { padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .94rem; vertical-align: top; }
.spec-table td.k { color: var(--muted); width: 42%; }
.spec-table td.v { font-weight: 600; }

.sales { width: 100%; border-collapse: collapse; }
.sales th, .sales td { text-align: left; padding: .65rem .4rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.sales th { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.sales td.amt { font-weight: 700; font-family: var(--mono); }

/* free-tier limit banner */
.limit-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #faf0d2; border: 1px solid #ecd592; color: #6c5210;
  border-radius: var(--radius); padding: .9rem 1.2rem; margin: 18px 0; font-size: .92rem;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero-grid, .signup-grid, .mug-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .insure { grid-template-columns: 1fr; }
}
