/*
Theme Name: Recte
Theme URI: https://example.com/
Author: Recte
Description: Marketing and legal site for the Recte suite of Shopify apps. Generates a page per app and a dedicated, directly linkable legal page per app for Shopify App Store submission. Colours and type follow the Recte brand system.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: recte
Tags: business, one-column, custom-menu, custom-logo, accessibility-ready
*/

/* ---------------------------------------------------------------
   Brand tokens — these are the locked values from the logo system.
   Change them here and the whole site follows.
   --------------------------------------------------------------- */
:root {
  --ink:        #0E1B31;
  --ink-top:    #16294A;
  --ink-deep:   #07101F;
  --paper:      #F6F1E7;
  --paper-edge: #DCD3C2;
  --rule:       #44567A;
  --amber:      #FFB020;
  --amber-deep: #EE9A10;
  --mute:       #A6B8D4;
  --faint:      #7189AE;

  --page:       #FFFFFF;
  --page-alt:   #F7F5F0;
  --text:       #16233A;
  --text-soft:  #4A5A76;
  --line:       #E3E0D8;

  --wrap: 1140px;
  --radius: 16px;
  --shadow: 0 2px 4px rgba(14,27,49,.05), 0 12px 32px rgba(14,27,49,.08);
}

/* ---------------------------------------------------------------
   Reset & base
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: #1B3B77; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--amber-deep); }
h1, h2, h3, h4 {
  font-family: "Inter Display", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.15em; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.r-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--amber); color: var(--ink); padding: .7em 1.2em; font-weight: 700;
}
.r-skip:focus { left: 8px; top: 8px; }

.r-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.r-pad { padding-top: 64px; padding-bottom: 64px; }
.r-center { text-align: center; }
.r-h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
.r-h2 { margin-bottom: .3em; }

.r-eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 .8em;
}
.r-lede { font-size: 1.14rem; color: var(--text-soft); max-width: 62ch; }
.r-lede--wide { max-width: 70ch; }
.r-fineprint { font-size: .92rem; color: var(--text-soft); max-width: 70ch; }

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.r-header { background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.08); }
.r-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.r-logo { display: inline-flex; align-items: center; }
.r-logo img { display: block; height: 38px; width: auto; }
.custom-logo-link img { height: 38px; width: auto; }

.r-nav { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.r-nav a {
  display: block; padding: 9px 14px; border-radius: 10px;
  color: var(--mute); text-decoration: none; font-weight: 500; font-size: .97rem;
}
.r-nav a:hover, .r-nav .current-menu-item > a {
  background: rgba(255,255,255,.08); color: var(--paper);
}

.r-burger {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px; gap: 5px;
  flex-direction: column;
}
.r-burger span { display: block; width: 24px; height: 2px; background: var(--paper); border-radius: 2px; }

@media (max-width: 800px) {
  .r-burger { display: flex; }
  .r-primary {
    display: none; position: absolute; left: 0; right: 0; top: 76px; z-index: 20;
    background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.1); padding: 8px 16px 16px;
  }
  .r-primary.is-open { display: block; }
  .r-header__in { position: relative; flex-wrap: wrap; }
  .r-nav { flex-direction: column; }
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.r-hero {
  background: linear-gradient(160deg, var(--ink-top) 0%, var(--ink) 55%, var(--ink-deep) 100%);
  color: var(--paper); padding: 84px 0 72px;
}
.r-hero--sm { padding: 56px 0 48px; }
.r-hero h1 { color: var(--paper); }
.r-hero .r-lede { color: var(--mute); }
.r-hero__sum { color: var(--mute); max-width: 60ch; }
.r-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.r-hero__links { color: var(--faint); font-size: .95rem; }
.r-hero__links a { color: var(--mute); }
.r-hero__app { display: flex; gap: 32px; align-items: flex-start; }
.r-hero__icon { flex: 0 0 auto; }
@media (max-width: 640px) { .r-hero__app { flex-direction: column; gap: 20px; } }

.r-appicon { display: block; width: 72px; height: 72px; border-radius: 16px; }
.r-appicon--lg { width: 112px; height: 112px; border-radius: 22px; }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.r-btn {
  display: inline-block; padding: 13px 24px; border-radius: 12px;
  font-weight: 700; text-decoration: none; font-size: 1rem; line-height: 1.2;
  border: 2px solid transparent; transition: transform .12s ease, background .12s ease;
}
.r-btn--amber { background: var(--amber); color: var(--ink); }
.r-btn--amber:hover { background: var(--amber-deep); color: var(--ink); transform: translateY(-1px); }
.r-btn--ghost { border-color: rgba(166,184,212,.5); color: var(--mute); }
.r-btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.r-pad .r-btn:not(.r-btn--amber) { border-color: var(--line); color: var(--ink); }
.r-pad .r-btn:not(.r-btn--amber):hover { border-color: var(--amber); color: var(--amber-deep); }

/* ---------------------------------------------------------------
   Cards / grid
   --------------------------------------------------------------- */
.r-grid {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.r-card { display: flex; }
.r-card > a {
  display: block; width: 100%; padding: 24px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; text-decoration: none; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.r-card > a:hover { border-color: var(--amber); box-shadow: var(--shadow); transform: translateY(-2px); }
.r-card__icon { display: block; margin-bottom: 16px; }
.r-card__icon svg { width: 56px; height: 56px; border-radius: 13px; display: block; }
.r-card h3 { margin-bottom: .25em; }
.r-card__tag { color: var(--amber-deep); font-weight: 600; font-size: .95rem; margin-bottom: .6em; }
.r-card__sum { color: var(--text-soft); font-size: .95rem; margin-bottom: .8em; }
.r-card__more { font-weight: 700; font-size: .9rem; color: var(--ink); }
.r-card > a:hover .r-card__more { color: var(--amber-deep); }

/* ---------------------------------------------------------------
   Bands, features, plans
   --------------------------------------------------------------- */
.r-band { background: var(--page-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.r-three { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 30px; }
.r-three p { color: var(--text-soft); }

.r-features { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 30px; }
.r-feature { padding-left: 18px; border-left: 3px solid var(--amber); }
.r-feature p { color: var(--text-soft); margin: 0; }

.r-plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 28px 0; }
.r-plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.r-plan--hi { border-color: var(--amber); box-shadow: var(--shadow); }
.r-plan__price { font-family: "Inter Display", Inter, sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--ink); margin: .1em 0 .3em; }
.r-plan__what { color: var(--text-soft); font-size: .95rem; margin: 0; }

.r-datalist { max-width: 74ch; margin-top: 20px; }
.r-datalist li { margin-bottom: .5em; color: var(--text-soft); }

.r-callout {
  border-left: 4px solid var(--amber); background: #FFF8EC;
  padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 24px 0;
}
.r-callout p { margin: 0; font-size: .96rem; }

/* ---------------------------------------------------------------
   Tabs
   The panels are visible by default. JS adds .r-tabs--on, which is the only
   thing that enables hiding. Without JS everything stays readable and anchored.
   --------------------------------------------------------------- */
.r-tabs__list {
  display: flex; flex-wrap: wrap; gap: 4px;
  border-bottom: 2px solid var(--line); margin-bottom: 8px;
}
.r-tabs__tab {
  appearance: none; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .98rem; color: var(--text-soft);
  padding: 12px 18px; border-radius: 10px 10px 0 0; margin-bottom: -2px;
  border-bottom: 3px solid transparent;
}
.r-tabs__tab:hover { color: var(--ink); background: var(--page-alt); }
.r-tabs__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--amber); }

/* No-JS: panels stack, each with its own heading. */
.r-tabs__panel { padding-top: 20px; border-top: 1px solid var(--line); margin-top: 28px; }
.r-tabs__heading { margin-top: 0; }

/* JS on: real tab behaviour. */
.r-tabs--on .r-tabs__panel { display: none; border-top: 0; margin-top: 0; }
.r-tabs--on .r-tabs__panel.is-active { display: block; }
.r-tabs--on .r-tabs__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
  .r-tabs__list { border-bottom: 0; gap: 6px; }
  .r-tabs__tab { border: 1px solid var(--line); border-radius: 10px; margin: 0; }
  .r-tabs__tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
}

.r-legalgrid { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.r-legalgrid a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600;
}
.r-legalgrid a:hover { border-color: var(--amber); }
.r-legalgrid svg { width: 34px; height: 34px; border-radius: 8px; flex: 0 0 auto; }

/* ---------------------------------------------------------------
   Prose / legal documents
   --------------------------------------------------------------- */
.r-prose { max-width: 74ch; }
.r-prose h2 { margin-top: 1.6em; }
.r-prose h3 { margin-top: 1.7em; font-size: 1.08rem; }
.r-prose li { margin-bottom: .45em; }
.r-eff { color: var(--text-soft); font-size: .92rem; font-style: italic; }
.r-placeholder { background: #FFE9A8; color: #6A4A00; font-weight: 700; padding: 1px 6px; border-radius: 4px; }

.r-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .95rem; }
.r-table th, .r-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.r-table th { background: var(--page-alt); font-weight: 700; color: var(--ink); }

.r-faq { margin-top: 24px; max-width: 74ch; }
.r-faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 4px 18px; margin-bottom: 10px; }
.r-faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; color: var(--ink); }
.r-faq p { color: var(--text-soft); margin-top: 0; }

.r-contact { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.r-mail { font-size: 1.15rem; font-weight: 700; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.r-footer { background: var(--ink-deep); color: var(--mute); padding: 56px 0 28px; margin-top: 0; }
.r-footer__top { display: grid; gap: 40px; grid-template-columns: 1.4fr 2fr; }
@media (max-width: 800px) { .r-footer__top { grid-template-columns: 1fr; } }
.r-footer__blurb { font-size: .95rem; max-width: 40ch; margin-top: 16px; color: var(--faint); }
.r-footer__cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.r-footer h4 { color: var(--paper); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.r-footer ul { list-style: none; margin: 0; padding: 0; }
.r-footer li { margin-bottom: .4em; }
.r-footer a { color: var(--mute); text-decoration: none; font-size: .95rem; }
.r-footer a:hover { color: var(--amber); }
.r-footer__base { border-top: 1px solid rgba(255,255,255,.09); margin-top: 40px; padding-top: 20px; font-size: .86rem; color: var(--faint); }
.r-footer__base p { margin: 0 0 .4em; }
.r-footer__disc { color: #5C7194; }

@media print {
  .r-header, .r-footer, .r-tabs__list, .r-hero__cta, .r-skip { display: none !important; }
  .r-tabs--on .r-tabs__panel { display: block !important; }
  .r-tabs--on .r-tabs__heading { position: static; width: auto; height: auto; clip: auto; }
  body { font-size: 12pt; }
}

/* ---------------------------------------------------------------
   Trust strip
   --------------------------------------------------------------- */
.r-strip { background: var(--ink-deep); color: var(--mute); }
.r-strip__in {
  display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: center;
  padding: 18px 24px; font-size: .92rem; font-weight: 600; letter-spacing: .01em;
}
.r-strip__in span { position: relative; padding-left: 22px; }
.r-strip__in span::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px;
  margin-top: -5px; border-radius: 3px; background: var(--amber);
}

/* ---------------------------------------------------------------
   Pricing table
   --------------------------------------------------------------- */
.r-pricetable { display: flex; flex-direction: column; gap: 14px; }
.r-pricerow {
  display: grid; grid-template-columns: minmax(230px, 1fr) 2fr; gap: 24px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; background: #fff;
}
.r-pricerow:hover { border-color: var(--amber); }
.r-pricerow__app { display: flex; gap: 14px; align-items: center; }
.r-pricerow__app svg { width: 46px; height: 46px; border-radius: 11px; flex: 0 0 auto; }
.r-pricerow__app h3 { margin: 0; font-size: 1.05rem; }
.r-pricerow__app h3 a { text-decoration: none; color: var(--ink); }
.r-pricerow__app h3 a:hover { color: var(--amber-deep); }
.r-pricerow__app p { margin: 0; font-size: .88rem; color: var(--text-soft); }
.r-pricerow__plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.r-pricechip { background: var(--page-alt); border-radius: 12px; padding: 12px 14px; }
.r-pricechip__name { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.r-pricechip__price { display: block; font-family: "Inter Display", Inter, sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--ink); line-height: 1.3; }
.r-pricechip__what { display: block; font-size: .82rem; color: var(--text-soft); }
@media (max-width: 760px) { .r-pricerow { grid-template-columns: 1fr; } }
